The different atmospheric pressures cause the air to have zones with different temperatures, the cold air tends to descend and the hot air to rise because it has less density. This movement of the two airs in the atmosphere is what generates the wind.