Permanent magnets are materials in which magnetic dipoles of electrons are permanently aligned in one direction.
This entanglement is self-sustaining up to a critical temperature. Above this temperature, the electrons return to their basic entanglements in the atom or atomic bond.