Dear Student,....Energy gained from burning fossil fuels is converted to electricity and heat in commercial power plants. When fossil fuels are burned carbon and hydrogen react with oxygen in air to carbon dioxide (CO2) and water (H2O).....energy that trees capture from the sun, we burn fossil fuels to release the energy that ancient plants captured from the sun.....regards.