Hard magnetic materials (e.g. steel) have domains that do not easily move into line when the metal is placed in a magnetic field, a strong field is needed for some time, but then, when the field is removed the domains retain the magnetic pattern. The metal stays magnetic for a long time.