We calculate the time of alignment of the magnetic dipole moment with the axis of rotation.rnFor alignment we take into acount the electromagnetic torque acting on the magneticrndipole moment, the frictional torque between the crust and the core and gravitational effects.rnThe anomalous electromagnetic torque, usually neglected in the a rigid star model,rnhere plays a crucial role for the alignment of the magnetic dipole