The capture, use, distribution, and restoration of water are essential to most cultures. Numerous types of waterworks accomplish these tasks such as dams, pipes, and levees for controlling the flow of water, the distribution of drinking water, and managing wastewater and sewage. Water is also an essential producer of power.