Answer:
Magnetic fields are generated by charges in motion
Step-by-step explanation:
Magnetic fields are produced by charges in motion. However, charges in motion are currents, therefore we can also say that magnetic fields are generated by currents.
We can use as example the magnetic field produced by a current-carrying wire. The magnitude of the magnetic field produced by a current-carrying wire is given by:

where
is the vacuum permeability, I is the current intensity, and r is the radial distance from the wire. The lines of the magnetic field correspond to concentric circles around the wire.
Magnetic fields are also produced by magnets, which are material that generate magnetic fields. A magnet always consists of a north pole and a south pole, and the lines of the magnetic field go from the north pole to the south pole.