New Zealand had to build an aluminum plant in the 1960s and figured out it would be more efficient to bore miles underground, build turbines, install a huge power station, and wire it tens of miles to the smelting plant. It relies on a vertical drop between Lake Manapōuri and the open ocean to create the gravitational potential to turn the turbines. When the smelting station doesn't use the full capacity the power station has to immediately reduce output, otherwise it can overload the transmission lines to the rest of the grid.
Manapouri Power Station is the name if anyone is interested in reading more. It has an interesting history. https://en.wikipedia.org/wiki/Manapouri_Power_Station