Physical phenomenon arising from aligned electron spins, producing attractive or repulsive forces.Magnetism is a fundamental force of nature that arises from the motion and alignment of electric charges, particularly electrons. In everyday materials, magnetism is most commonly observed when the spins of electrons in atoms align in a coordinated way, creating a net magnetic field. This field can exert attractive or repulsive forces on other magnetic materials, which is why magnets stick to refrigerators or repel each other. Beyond household magnets, magnetism plays a central role in astrophysics, where it shapes the behavior of extreme objects like magnetars—highly magnetized neutron stars that emit powerful bursts of radiation. It also influences the dynamics of plasma in stars and the interstellar medium, and even affects the formation of planets in protoplanetary disks.
The study of magnetism dates back to ancient civilizations, but the modern scientific understanding began with William Gilbert in 1600, who proposed that Earth itself is a giant magnet. The connection between electricity and magnetism was established by Hans Christian Ørsted in 1820, and James Clerk Maxwell unified them into a single theory of electromagnetism in the 1860s.
At its core, magnetism is a relativistic effect of moving charges. When electrons move, they create a magnetic field perpendicular to their motion. In atoms, electrons have both orbital motion and an intrinsic property called spin, which acts like a tiny bar magnet. In most materials, these spins are randomly oriented, canceling out any net magnetism. But in ferromagnetic materials like iron, neighboring spins align in small regions called domains. When these domains are aligned by an external field, the material becomes magnetized. The force between magnets arises from the exchange of virtual photons, which mediate the electromagnetic interaction.
Magnetism is used in countless technologies, from electric motors and generators to magnetic resonance imaging (MRI) in medicine, and in data storage devices like hard drives.
Magnetars, a type of neutron star, have magnetic fields a million billion times stronger than Earth's, so intense that they can distort atoms into thin cylinders.











