Resources of geothermal energy range from the shallow ground to hot water and hot rock found a few miles or kilometers beneath the Earth's surface, and down even deeper to the extremely high temperatures of molten rock called magma. It has been used for bathing from Paleolithic times, but is now better known for making electricity.