Stratification typically occurs when water layers of different temperatures form due to changes in temperature and density. In lakes, this often results in three distinct layers: the epilimnion (warm, upper layer), the metalimnion or thermocline (a middle layer with a rapid temperature decrease), and the hypolimnion (cold, dense bottom layer). Oceans also experience stratification, often influenced by salinity gradients.