The sun produces heat derived from energy through a variety of means, such as fusion, radiation and convection. Heat is the transfer of energy from one body to another, so the heat from the sun is the result of the energy produced in its core being transferred outward into space.