Energy derived from heat within the earth's crust and used to generate electricity and heat buildings.