Diagram of clouds forming due to weather fronts

Credit: CMMAP

Cold air is more dense than warm air, so when a warm air mass meets a cold air mass, the cold air ends up below the warm air. Once the air has risen, it cools and clouds can form.