It starts with pressure
The Sun heats Earth's surface unevenly: dark land warms faster than water, the equator more than the poles. Warm air expands, grows lighter and rises, leaving lower pressure beneath it; cool air sinks and raises pressure. Air then flows from high pressure toward low, trying to level the difference. That flow is wind.
The bigger the pressure difference over a given distance, the stronger the wind. On a weather map, tightly packed isobars — lines of equal pressure — are a warning of a gale.
The spin that bends it
If Earth stood still, winds would blow straight from high to low pressure. But the planet rotates, and the Coriolis effect bends moving air to the right in the northern hemisphere and to the left in the southern. The result is that winds spiral around pressure systems instead of crossing them directly, and great planetary wind belts — trade winds, westerlies — girdle the globe.
Close to the ground, friction with trees, hills and buildings slows the flow and lets it angle inward toward low pressure. That is why storms at the surface slowly fill in and die, their energy spent against the turning Earth and the rough land.

