For example, use solar power during the day to pump fluid from a lower reservoir into a higher reservoir, and then harness the energy of the water flowing from the higher reservoir into the lower reservoir through turbines.
As long as your output energy is always coming from the turbines, and as long as your solar powered pumps running during the day can keep up with double the rate of drainage flow, then you should have a constant loop with a steady supply of power.
This type of system could be retrofitted onto virtually any dam, giving you a way to create a closed loop with constant power and without the water loss typical from a dam (other than evaporation).
For areas where water is scarce and a dam isn't feasible, there are also other ideas, such as gravitational potential energy systems that use solar powered energy to lift weights on pulleys, which then power a generator as the weights are lowered by gravity.
Other ideas: Thermal storage including molten salts which can efficiently store and release very large quantities of heat energy, compressed air energy storage, flywheels, cryogenic systems, etc...