A straightforward method to prepare a novel magnetic self-healing hydrogel has been successfully developed.