Magnetic fields are produced by moving electric charges and the intrinsic magnetic moments of elementary particles associated with a fundamental quantum property , their spin . [1] [2] Magnetic fields and electric fields are interrelated, and are both components of the electromagnetic force , one of the four fundamental forces of nature.
The magnetic state (or magnetic phase) of a material depends on temperature and other variables such as pressure and the applied magnetic field. A material may exhibit more than one form of magnetism as these variables change.