Geotechnical engineering is a sub-discipline of civil engineering concerned with the behavior of soil and rocks in relation to civil engineering design. It involves analyzing the properties of soil and rock materials, and designing foundations and earthworks accordingly.