Geotechnical engineering is the branch of civil engineering concerned with the engineering behavior of earth materials. Geotechnical engineering uses principles of soil mechanics and rock mechanics to investigate subsurface conditions and materials; determine the relevant physical/mechanical and chemical properties of these materials; evaluate stability of natural slopes and man-made soil deposits; assess risks posed by site conditions; design earthworks and structure foundations; and monitor site conditions, earthwork and foundation construction

A typical geotechnical engineering project begins with a review of project needs to define the required material properties. Then follows a site investigation of soil, rock, fault distribution and bedrock properties on and below an area of interest to determine their engineering properties including how they will interact with, on or in a proposed construction. Site investigations are needed to gain an understanding of the area in or on which the engineering will take place. Investigations can include the assessment of the risk to humans, property and the environment from natural hazards such as earthquakes, landslides, sinkholes, soil liquefaction, debris flows and rock falls.

A geotechnical engineer then determines and designs the type of foundations, earthworks, and/or pavement subgrades required for the intended man-made structures to be built. Foundations are designed and constructed for structures of various sizes such as high-rise buildings, bridges, medium to large commercial buildings, and smaller structures where the soil conditions do not allow code-based design.

Foundations built for above-ground structures include shallow and deep foundations. Retaining structures include earth-filled dams and retaining walls. Earthworks include embankments, tunnels, dikes, levees, channels, reservoirs, deposition of hazardous waste and sanitary landfills.

Geotechnical engineering is also related to coastal and ocean engineering. Coastal engineering can involve the design and construction of wharves, marinas, and jetties. Ocean engineering can involve foundation and anchor systems for offshore structures such as oil platforms.

The fields of geotechnical engineering and engineering geology are closely related, and have large areas of overlap. However, the field of geotechnical engineering is a specialty of engineering, where the field of engineering geology is a specialty of geology.

Deep foundations are used for structures or heavy loads when shallow foundations cannot provide adequate capacity, due to size and structural limitations. They may also be used to transfer building loads past weak or compressible soil layers. While shallow foundations rely solely on the bearing capacity of the soil beneath them, deep foundations can rely on end bearing resistance, frictional resistance along their length, or both in developing the required capacity. Geotechnical engineers use specialized tools, such as the cone penetration test, to estimate the amount of skin and end bearing resistance available in the subsurface.

There are many types of deep foundations including piles, drilled shafts, caissons, piers, and earth stabilized columns. Large buildings such as skyscrapers typically require deep foundations. For example, the Jin Mao Tower in China uses tubular steel piles about 1m (3.3 feet) driven to a depth of 83.5m (274 feet) to support its weight.

In buildings that are constructed and found to undergo settlement, underpinning piles can be used to stabilise the existing building.

Slope stability is the analysis of soil covered slopes and its potential to undergo movement. Stability is determined by the balance of shear stress and shear strength. A previously stable slope may be initially affected by preparatory factors, making the slope conditionally unstable. Triggering factors of a slope failure can be climatic events can then make a slope actively unstable, leading to mass movements. Mass movements can be caused by increases in shear stress, such as loading, lateral pressure, and transient forces. Alternatively, shear strength may be decreased by weathering, changes in pore water pressure, and organic material.