Magnetic materials are classified as those with and without permanent magnetic moments. Ferromagnetic materials have permanent magnetic moments below their Curie temperature due to spontaneous magnetization arising from spin exchange interaction between neighboring magnetic dipoles aligned in domains. When an external magnetic field is applied, the domains align by domain wall motion at weak fields and domain rotation at strong fields, producing hysteresis in the magnetization.