When solar radiation enters the earth's atmosphere, because of the curvature of the earth it warms different regions of the atmosphere to differing extents most at the equator and least at the poles. Since air tends to flow from warmer to cooler regions, this causes what we call winds, and it is these air flows that are harnessed in windmills and wind turbines to produce power.