Why is the Earth's inner core solid, despite being hotter than the outer core?

Answer

The intense pressure at the center forces it into a solid state

Although the inner core is extremely hot, the immense pressure exerted by the overlying layers is sufficient to solidify the iron-nickel alloy, unlike the less compressed outer core which remains liquid.

Why is the Earth's inner core solid, despite being hotter than the outer core?
compositionlayerprocessdensityplanet