Magnetocrystalline anisotropy is the energy cost per atom to align its magnetization from one crystallographic direction to another. It is a special case of magnetic anisotropy. The spin-orbit interaction is the primary source of the magnetocrystalline anisotropy