The Earth's core is a crucial part of the Earth's structure, and it is divided into two main parts: the inner core and the outer core.
The inner core is a solid sphere made primarily of iron and nickel, with temperatures reaching up to 9,000 degrees Fahrenheit (5,000 degrees Celsius). The immense pressure in the Earth's core keeps the inner core in a solid state, despite the high temperatures.
The outer core is a liquid layer also composed of iron and nickel. It is responsible for generating the Earth's magnetic field through the movement of the molten metal. This movement, known as convection, creates electric currents that generate the magnetic field we observe on the Earth's surface.