However, it's important to note that the Sun doesn't have a solid surface like Earth. This temperature refers to the photosphere, the visible layer of the Sun where most of the light we see is emitted.
The Sun's core is much hotter, reaching temperatures of 15 million degrees Celsius (27 million degrees Fahrenheit).