Why does Air Pressure Vary?

Air pressure varies due to Sun. Sun heats a place and density of air gets less. Hence pressure at that place reduces. Air from high pressure region moves which is called wind.