Petroleum and biomass are burned in combustion reactions, which liberate energy stored in chemical bonds. This is chemical energy. In contrast, nuclear energy comes from the conversion of mass into energy when an nuclear reaction occurs. Geothermal energy comes directly from heat sources underground, with no chemical or nuclear reactions.