Wind energy is generated by harnessing the power of wind with windmills or turbines. The ancient Egyptians first harnessed wind power on the Nile River as early as 5000 BC. Wind turbines operate by using the energy from wind to turn blades around a rotor, which spins a generator to produce electricity. Wind turbines can power individual homes or be connected to an electricity grid for wider distribution.