Here's a comparison:
* Sun's core: Around 27 million degrees Fahrenheit (15 million degrees Celsius)
* Earth's core: Around 9,700 degrees Fahrenheit (5,400 degrees Celsius)
The Sun's core is so hot because of nuclear fusion, a process where hydrogen atoms fuse together to form helium, releasing enormous amounts of energy. The Earth's core is hot due to radioactive decay and the immense pressure from the weight of the planet above it.
So, while the Earth's core is incredibly hot, it's still a fraction of the temperature found at the Sun's core.