Geothermal energy can provide electricity, heating, and cooling by extracting heat from underground reservoirs.