The statement that helps explain Earth’s magnetic field is:
Earth’s core is composed of iron and nickel.
The movement of molten iron and nickel in the outer core generates electric currents, which in turn produce magnetic fields. This dynamo effect is responsible for Earth’s magnetic field.