Wind is a form of solar energy.
The sun heats the surface of the earth unevenly. During the day, air above land heats more quickly than the air above water. The hot air expands and rises, and heavier, cooler ocean air moves in to take its place, creating local winds. At night, the winds are reversed because at this time, air cools more rapidly over land than over water. If you have ever been on a beach, you already know this.