A depression forms when warm and cold air masses meet at a polar front boundary. As the denser cold air advances, it undercuts the warm air, forming a warm front and cold front. Eventually the cold front catches up to the warm front, lifting it in an occluded front. The depression then decays as the warm air is lifted away, with warm air now trapped on the poleward side of the polar front.