Waterwheels were also used to power chain pumps that lifted water to raised irrigation ditches.