Soil liquefaction occurs when water-saturated soils lose strength during earthquakes or other vibrations, causing the soil particles to separate and behave like a liquid. This happens because earthquake shaking increases water pressure between soil particles. Buildings and structures can sink or collapse into liquefied soils. Techniques to prevent liquefaction include compacting soils or setting deep foundations below unstable layers. Quick sand conditions occur when upward seepage flow reduces effective stress in loose soils like sand, causing a floating effect with little weight-bearing capacity.