How does oil transfer energy? The hydrocarbon molecules in petroleum contain a large amount of chemical energy. When they are burned, two things happen: they release a lot of that energy as heat, and they release gases (carbon dioxide, water vapor and sometimes nitrogen, depending on the fuel).