Answer:
In a permanent magnet, the magnetic field comes from the motion of the electrons inside the material, or, more precisely, from something called the electron spin. The electron spin is a bit like the Earth spinning on its axis. The magnetic field is a vector, the same way the electric field is.
Step-by-step explanation: