>>14138550>the core of the Earth is a giant ball of molten ironThe core is above the temperature that iron melts, however pressure due to compression by gravity causes it to remain in a solid state.
Similar to how the pressurized cooling water in a nuclear reactor is way over the temperature at which water turns to steam, but it remains in a water state due to pressure.
Same as how water that makes up your body is in a liquid state, but if you went into the vacuum of space, it would begin to boil due to lower pressures.