The uneven heating of the earth's surface by the sun results high and low pressure regions, and air masses move from high pressure regions to low pressure regions. If warm air replaces colder air, the front is called a warm front. If cold air displaces warm air, its front is called a cold front.