The primary purpose of pumped-storage hydropower is to store electrical energy and release it when needed, acting as a large-scale battery for the power grid.