A magnetic dipole is a pair of opposite magnetic poles separated by a small distance, which produces a magnetic field.