Because of the tilt of the Earth's axis, winds and pressure belts pick up the influence of whichever direction they are facing. During summer in the northern hemisphere, for instance, hot winds that are warmed by the sun create the heat most people are used to at that time of year. Conversely, the winds in winter have a southward shift in direction that brings cooler weather to a region, because they are faced away from the sun's glare.
There are four main types of air masses -- polar maritime, polar continental air, tropical maritime air and tropical continental air. The masses are named and categorized based on their topographical location, which also dictates the temperature and effect the mass will have on a surrounding area if it moves. Polar maritime air is relatively warm and moist, because it is heated from below by the water. Polar continental air is cold and mainly dry in winter, but warm in summer when the land heats quickly. Tropical maritime air is warm and moist, and tropical continental air is warm and dry. The movements of these air masses and their interactions with land masses affect weather in those areas.
Boundaries between the different types of air masses are known as fronts. When the air from one mass travels into another, it can create a storm or other change in weather, depending on how fast and how similar or different the two masses are at the time when they blend into each other. When two masses collide quickly into each other, it can cause a cyclone.
Topography influences air's movement, thereby having an effect on the weather. Mountain ranges, for instance, are natural barriers to air movement. Coastal winds usually cannot reach past a mountain range, so areas inland of a range tend to be dryer and warmer. The further toward a coast you move, the more humidity you will experience, because of the moisture-laden air. A city's proximity to mountains and bodies of water helps determine wind patterns and air masses.