Windmills are mechanical devices that are used for converting wind energy into electrical energy" A windmill is used in the generation of power by converting wind energy into mechanical energy. This mechanical power can be used for specific tasks (such as grinding grain or pumping water) or a generator can convert this mechanical power into electricity.