Water mills were traditionally used to grind grains before the advent of modern energy sources. The kinetic energy of flowing water was harnessed to turn millstones that crushed wheat, corn, and other grains into flour. This was one of the earliest applications of water power for mechanical work.