Permanent magnets (materials that can be magnetized by an external magnetic field and remain magnetized after the external field is removed) are either ferromagnetic or ferrimagnetic, as are the materials that are attracted to them. Relatively few materials are ferromagnetic. They are typically pure forms, alloys, or compounds of iron, cobalt, nickel, and certain rare-earth metals.