Flow separation occurs when the boundary layer travels far enough against an adverse pressure gradient that the speed of the boundary layer relative to the object falls almost to zero. The fluid flow becomes detached from the surface of the object, and instead takes the forms of eddies and vortices.