Supernova
When their fuel runs out, ... stars collapse dramatically in upon themselves, and as they do so, enormous amounts of gravitational energy are released and converted into heat.
When their fuel runs out, ... stars collapse dramatically in upon themselves, and as they do so, enormous amounts of gravitational energy are released and converted into heat.