Geotechnical engineering is the branch of engineering that studies soil, rock, and groundwater conditions for construction and infrastructure projects.