The ancient Persians built windmills with vertical shafts 1,000 years ago to grind seeds.

They are located in Nashtifan in present-day Iraq and can still function.

[Source: http://www.iflscience.com]