  Magnetic properties of quark matter and its relation to the microscopic
origin of the magnetic field observed in compact stars are studied. Spontaneous
spin polarization appears in high-density region due to the Fock exchange term,
which may provide a scenario for the behaviors of magnetars. On the other hand,
quark matter becomes unstable to form spin density wave in the moderate density
region, where restoration of chiral symmetry plays an important role.
Coexistence of magnetism and color superconductivity is also discussed.
