The canal’s lock system relies heavily on gravity to move massive amounts of water. Each lock chamber requires approximately 26 million gallons of water to fill. This water is sourced from artificial lakes, such as Gatún Lake, which are replenished by Panama’s abundant rainfall.
https://www.freeastroscience.com/2024/12/how-panama-canal-works-unlocking-modern.html

