Dams are one of the best kind of battery there is. They store gargantuan amounts of energy with very little complexity. Basically: pump water up into the dam to "charge," and let water flow and run the turbines to "release" energy.
That's why hydro power is absolutely critical to a renewable grid. It's the only scalable way to normalize supply and demand.