Iron is the most abundant element in Earth's core. The core formed early in Earth's history when the young planet was hot enough for dense metals to sink toward its center, while lighter silicate minerals rose toward the mantle and crust.
Earth's core has two main parts: a liquid outer core and a solid inner core. Both are composed mostly of iron, with nickel and smaller amounts of lighter elements also present. The outer core's flowing molten iron helps generate Earth's magnetic field through the geodynamo effect.
A common mix-up is confusing the core with Earth's crust. Oxygen and silicon dominate the crust by mass, while iron is especially concentrated in the core. Nickel is an important companion element there, but it is less abundant than iron. The inner core was identified as solid in 1936 through seismic-wave evidence, decades after scientists had established the existence of the outer core.