Wind turbines convert the kinetic energy of wind into mechanical or electrical power. Historically, windmills were used to grind grain and pump water, and modern wind turbines generate electricity on a large scale. While wind energy has advantages of being renewable and producing no emissions, disadvantages include intermittent wind availability and higher costs of offshore wind farms. Overall, wind power provides a clean source of electricity when winds are adequate.