What Creates Magnetic Fields?

Magnetic fields are created by electrical currents moving through an object, like the earth, or an electrical wire, or a magnet. The field goes around the object. For more information, look here: