text: A windmill is an engine powered by the wind to produce energy, often contained in a large building as in traditional post mills, smock mills and tower mills. The energy windmills produce can be used in many ways, traditionally for grinding grain or spices, pumping water, sawing wood or hammering seeds. Modern wind power machines are used for generating electricity and are more properly called wind turbines.\n\nEarly history\nWindmills have been around for at least 1,300 years. The first windmills had vertical shafts and were reportedly built in Persia around the 7th century AD. Made of six to twelve sails covered in fabric or palm leaves, they were used to grind corn and draw up water. A similar type of vertical shaft windmill can also be found in 13th century China.\n\nIn Europe\n Muttons Mill, one of the many drainage windpumps on the Norfolk Broads (United Kingdom)In Europe, windmills were developed in the Middle Ages. The earliest mills were probably grinding mills. They were mounted on city walls and could not be turned into the wind. The earliest known examples date from early 12th century Paris. Because fixed mills did not suffice for regions with changing wind directions, mill types that could be turned into the wind were developed. With some subsequent development mills became versatile in windy regions for all kind of industry, most notably grain grinding mills, sawmills (late 16th century), threshing, and, by applying Archimedes' screws, pumping mills.\n\nWith the industrial revolution, the importance of windmills as primary industrial energy source was replaced by steam and internal combustion engines. Polder mills were replaced by steam, or diesel engines. The industrial revolution and increased use of Steam and later Diesel power however had a lesser effect on the Mills of the Norfolk Broads in the United Kingdom, these being so isolated (on extensive uninhabitable marshland), therefore some of these mills continued use as drainage pumps till as late as 1959. More recently historic windmills are being preserved for their historic value, which requires regular use because the wooden machinery is likely to be destroyed by woodworm and dry rot when the mill remains stationary for too long.\n\nWith increasing environmental concern, and approaching limits to fossil fuel consumption, wind power has regained interest as a renewable energy source. This new generation of wind mills produce electric power and are more generally referred to as wind turbines.\n\nSee Flood control in the Netherlands#Windmills for use of windmills in land reclamation in the Netherlands.\n\nIn the United States\n Farm windmill, Sheridan County, Kansas, USA, 1939The development of the water-pumping windmill in the USA was the major factor in allowing the farming and ranching of vast areas of North America, which were otherwise devoid of readily accessible water. They contributed to the expansion of rail transport systems throughout the world, by pumping water from wells to supply the needs of the steam locomotives of those early times. They are still used today for the same purpose in some areas of the world where a connection to electric power lines is not a realistic option.\n\nThe multi-bladed wind turbine atop a lattice tower made of wood or steel was, for many years, a fixture of the landscape throughout rural America. These mills, made by a variety of manufacturers, featured a large number of blades so that they would turn slowly but with considerable torque in low winds and be self regulating in high winds. A tower-top gearbox and crankshaft converted the rotary motion into reciprocating strokes carried downward through a pole or rod to the pump cylinder below.\n\nWindmills and related equipment are still manufactured and installed today on farms and ranches, usually in remote parts of the western United States where electric power is not readily available. The arrival of electricity in rural areas, brought by the Rural Electrificatio