The Sun heats the atmosphere unevenly, so some patches become warmer than others.
These warm patches of air rise, other air blows in to replace them - and we feel a wind blowing.
We can use the energy in the wind by building a tall tower, with a large propeller on the top.
The wind blows the propeller round, which turns a generator to produce electricity.