Earth's core is the very hot, very dense center of our planet.
The magnetism of the Earth's core is due to the electrical conductivity of the liquid metal present in it.
The Earth is made up of layers with various chemical compositions and physical features.
The Earth's crust is permanently magnetized, and the Earth's core generates its own magnetic field, which sustains the majority of the field we see at the surface.
Convection currents of molten iron and nickel in the earth's core generate magnetism.
Hence, we can conclude that Earth's core is magnetic in nature.