The boundary layer is the thin region near a surface where viscous effects are important and velocity changes from zero (no-slip condition) to the free-stream value. Separation occurs when the boundary layer detaches from the surface, creating a wake region of low pressure and recirculating flow. Separation is caused by adverse pressure gradients (pressure increasing downstream) and significantly increases drag force.
From boundary layer theory you know that viscous effects are confined to a thin region near a wall, where velocity rises from zero (the no-slip condition) to the free-stream value, while the flow away from the wall behaves nearly as inviscid. The pressure distribution around a body is therefore set by the outer inviscid flow — the boundary layer rides along the surface under a pressure field it did not create. This is the key setup: the boundary layer must navigate whatever pressure landscape the outer flow imposes.
In a favorable pressure gradient — pressure decreasing downstream, velocity increasing — the flow is pushed forward and the boundary layer stays thin and attached. This occurs on the upstream face of a body. In an adverse pressure gradient — pressure increasing downstream, velocity decreasing — the slow-moving fluid near the wall is asked to push against rising pressure. Near the wall, viscosity has already robbed the fluid of momentum; what remains is not enough to climb the pressure hill. At some point, the near-wall fluid stalls, reverses direction, and the boundary layer detaches from the surface. This is separation: a recirculating wake forms downstream, and the smooth attached flow is replaced by a turbulent, low-pressure dead zone.
The consequences of separation are severe and asymmetric. The wake region maintains nearly constant, low pressure, while the front of the body sees high pressure. This fore-aft pressure imbalance is pressure drag (form drag), and once separation occurs it dominates over friction drag. A separated airfoil is the canonical example: as angle of attack increases, the adverse pressure gradient on the upper surface steepens, the boundary layer separates further forward, the suction peak collapses, and lift drops abruptly — this is stall. The engineering response is to delay separation as long as possible through careful shaping, surface treatment, or vortex generators that energize the boundary layer.
Turbulent boundary layers resist separation far better than laminar ones. The vigorous mixing in a turbulent layer continuously replenishes near-wall momentum from faster outer flow, enabling the boundary layer to survive steeper adverse gradients before separating. This explains the counterintuitive behavior of dimpled golf balls: the dimples trip the boundary layer from laminar to turbulent at lower speeds, and the resulting turbulent layer stays attached over more of the ball's surface, dramatically reducing the size of the wake and the pressure drag. The price paid — slightly higher friction drag — is far smaller than the gain from delayed separation. The strategic lesson is: a turbulent boundary layer that stays attached beats a laminar one that separates.