In the third season of The Magicians
, magic is gone, and everyone is left powerless, except for Julia (Julia Maeve). After embarking on the quest for the seven keys, the students get what they need to restore magic to earth, but are stopped by Alice (Olivia Taylor Dudley), who destroys the keys, not wanting magic to return. However, luckily, Julia is able to use her magic to stop Alice and remake the keys.
As they are about to restore magic once and for all, inserting their keys in the fountain, Gavin (Daniel Nemes), the traveling librarian from the Order, Irene McAllister (Jaime Ray Newman), and Dean Fogg (Rick Worthy) show up to stop them. Gavin attaches the siphon on the well spring to divert magic to the Library, so they can control who uses it. Fogg was involved in the deal with the Library and Irene to make it happen, in exchange for the lives of the students, and uses his potion to erase their memories and give them new magic-free identities as protection. However, Alice is not included, as she is arrested by the Library on backing out of her deal.