Original: Due to relativistic effects (Dirac equation), there is a magnetic momentum, S, arising from the electron spin
Simplified: Due to relativistic effects (Dirac equation), the magnetic moment arising from the electron spin is mu = - mu_B g s with g the gyro-magnetic factor (about 2).