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.
Image Courtesy of CMMAP