In volcanic areas, molten rock can be very close to the surface.
How it works
Hot rocks underground heat water to produce steam. We drill holes down to the hot region, steam comes up, is purified and used to drive turbines, which drive electric generators.
There may be natural "groundwater" in the hot rocks anyway, or we may need to drill more holes and pump water down to them.
The first geothermal power station was built at Landrello, in Italy, and the second was at Wairekei in New Zealand. Others are in Iceland, Japan, the Philippines and the United States.
In Iceland, geothermal heat is used to heat houses as well as for generating electricity.
If the rocks aren't hot enough to produce steam we can sometimes still use the energy - the Town Hall in Southampton, England, is partly heated this way.
Geothermal energy is an important resource in volcanically active places such as Iceland and New Zealand.How useful it is depends on how hot the water gets. This depends on how hot the rocks were to start with, and how much water we pump down to them.
Water is pumped down an "injection well", filters through the cracks in the rocks in the hot region, and comes back up the "recovery well" under pressure. It "flashes" into steam when it reaches the surface.
The steam may be used to drive a turbogenerator, or passed through a heat exchanger to heat water to warm houses. A town in Iceland is heated this way.
The steam must be purified before it is used to drive a turbine, or the turbine blades will get "furred up" like your kettle and be ruined.
Geothermal energy is renewable. The energy keeps on coming, as long as we don't pump too much cold water down and cool the rocks too much.