Hogwarts Legacy Story Explained: Ancient Magic, Ranrok and Isidora
A spoiler-marked guide to Hogwarts Legacy's main plot: ancient magic, the Keepers, Isidora Morganach, Ranrok's goblin rebellion, Victor Rookwood and the ending.
Hogwarts Legacy has a simple hook: you arrive at Hogwarts as a new fifth-year student in the 1890s. Under that, though, is a fairly involved story about a forgotten kind of magic, a secret society of dead professors, a goblin uprising and a dark wizard family with ambitions of its own. Because the game spreads its main plot across trials, flashbacks and long stretches of side content, many players finish it unsure exactly how the pieces fit together.
This explainer walks through the main storyline from beginning to end, introduces the key characters and factions, and looks at how the story fits into the wider Wizarding World. It does not cover gameplay strategy or character builds.
Spoiler warning: this article describes the whole main story, including the ending.
The Setup: A Late Start at Hogwarts
Hogwarts Legacy was developed by Avalanche Software and published by Warner Bros. Games under the Portkey Games label. It launched on February 10, 2023 for PlayStation 5, Xbox Series X/S and Windows, followed by PS4 and Xbox One in May 2023, Nintendo Switch in November 2023 and Nintendo Switch 2 in June 2025. Our beginner’s guide to Hogwarts Legacy covers the game itself; here the focus is the plot.
The player character is an unusual new student: someone who has only just been accepted into Hogwarts, joining directly in the fifth year rather than starting at eleven. Their mentor is Professor Eleazar Fig, a Magical Theory teacher who has been tasked with escorting them to school.
The journey goes badly wrong. A dragon attacks their carriage, and a Portkey drops the pair in the Scottish Highlands. Inside some ruins, they find a path that leads unexpectedly into a vault at Gringotts, the wizarding bank. There the player discovers they can see traces of a strange, old magic invisible to most wizards. A goblin named Ranrok and his followers confront them, and they escape to Hogwarts, where the player is sorted into a house.
What Ancient Magic Is
Ancient magic is the central mystery of the game. It is presented as an old, raw form of magic that predates the spells and wandwork most wizards learn. Few people can perceive it, let alone wield it, and the player is one of those rare individuals. In gameplay, it appears as powerful special abilities and as glowing traces in the world; in the story, it is a dangerous inheritance that has been hidden away for good reason.
Professor Fig has a personal connection to the subject. His late wife, Miriam, was researching ancient magic before her death, and Fig sees the player’s ability as a chance to understand what she was chasing. That personal motivation drives much of his behaviour throughout the story.
Ancient magic is stored in hidden repositories. Whoever controls those repositories could gain enormous power, which is exactly why several factions are hunting for them.
The Keepers and Their Trials
Deep beneath Hogwarts, the player discovers the Map Chamber, a secret room where four portraits speak to them. These are the Keepers, former Hogwarts professors who, in life, took it upon themselves to protect the knowledge of ancient magic and keep it hidden from the wizarding world. The four are:

- Percival Rackham, who was himself able to wield ancient magic.
- Charles Rookwood, whose family name becomes important later in the story.
- Niamh Fitzgerald.
- San Bakar.
The Keepers are wary of the player, and they will not simply hand over their secrets. Instead, the player must complete a series of trials, each linked to one of the Keepers. Each trial ends at a Pensieve containing a memory, and together those memories reveal what happened to Isidora Morganach.
Isidora Morganach: The Tragedy at the Centre
Isidora is the story’s most important figure, even though she has been dead for many years by the time the game begins. She was another person able to use ancient magic, and the Keepers’ memories reconstruct how her gift went wrong.
Isidora’s story begins with good intentions. Her father suffered deeply, and she used ancient magic to draw his pain and negative emotions out of him. Later, as a professor at Hogwarts, she began doing the same for students, extracting their pain to relieve their suffering. But she went further: she inhaled and absorbed those extracted emotions, using them to amplify her own power. The process left the people she helped without the full range of their feelings.
The Keepers tried to persuade her to stop and failed. A confrontation followed in the caverns beneath the school, and Isidora was killed when San Bakar cast the Killing Curse. Her death, and the moral weight of how it happened, is why the Keepers chose to lock ancient magic away. The question the game keeps returning to is whether the player is the next Isidora, or someone who can handle the same power without repeating her mistakes.
Ranrok and the Goblin Rebellion
The game’s main antagonist in the present is Ranrok, a goblin leading a rebellion against the wizarding establishment. His followers, known as Ranrok’s Loyalists, are behind much of the trouble across the Highlands, including attacks and excavations hunting for ancient magic repositories.

The story treats goblin grievances seriously in places. In the wider Wizarding World, goblins have long been restricted by wizarding law, including limits on carrying wands, and the game references this history of tension. Not all goblins support Ranrok: a goblin named Lodgok, who disagrees with Ranrok’s methods, becomes an ally of the player in a related questline, which helps the game avoid presenting goblins as a single villainous group.
Ranrok’s goal is the hidden repository of ancient magic. He wants its power to overturn the order that has kept goblins subordinate, and he sees the player’s ability to perceive ancient magic as the key to finding it.
Victor Rookwood and the dark wizards
Ranrok is not working alone. He has allied himself with a group of dark wizards led by Victor Rookwood, a descendant of the Keeper Charles Rookwood. Rookwood’s followers, including his lieutenant Harlow, operate across the Highlands with poachers and other criminals. The alliance is one of convenience: Rookwood wants the ancient magic for himself and has no intention of sharing it with the goblins.
The Climax and the Ending
After the trials are complete, Fig sends the player to the wandmaker Gerbold Ollivander, who helps craft a special wand for the final stage of the journey. Victor Rookwood then ambushes the player and proposes they join forces against the goblins. The player refuses and defeats him in a duel.
The finale takes place in Isidora’s repository. Ranrok breaks into it, absorbs its power and transforms into a dragon. In the fight that follows, Fig is badly injured, and the player defeats Ranrok.
The choice
With Ranrok defeated, the player has one decision to make: seal the ancient magic away, as the Keepers wanted, or take its power and promise to use it more wisely than Isidora did. Choosing to absorb the magic is framed as the darker path, while sealing it is done with Fig’s help.
Either way, Professor Fig dies. No choice made in the main story or side quests changes that outcome. In the epilogue, the headmaster, Phineas Nigellus Black, speaks about Fig, the school year draws to a close, and the player’s house wins the House Cup after receiving 100 points for the player’s actions. The final image is of a student who still has the O.W.L. exams ahead of them, a deliberately ordinary note after an extraordinary year.
The Companion Stories
Alongside the main plot, several companion questlines add their own arcs. They are optional, but they deepen the game’s world and themes:
- Sebastian Sallow, a Slytherin student whose questline is about his twin sister Anne, who is suffering from a curse. His desperation to cure her pushes him toward the Dark Arts, and his story is the darkest of the companion arcs.
- Ominis Gaunt, Sebastian’s friend and a member of the Gaunt family, the line that Voldemort’s mother would later come from. He rejects his family’s dark legacy, which creates tension with Sebastian’s choices.
- Poppy Sweeting, a Hufflepuff whose questline focuses on protecting magical beasts from poachers.
- Natsai Onai, a Gryffindor transfer student whose questline deals with the dark wizards affecting local villages.
These stories echo the main plot’s question of what to do with dangerous power, and they give the player a sense of what students might lose if Ranrok or Rookwood succeeded.
How the Story Fits Wizarding World Lore
Hogwarts Legacy is set in the 1890s, roughly a century before Harry Potter’s arrival at Hogwarts, so it can tell new stories without contradicting the books. Its original characters, including Fig, the Keepers, Isidora and Ranrok, are inventions for the game, and ancient magic itself does not appear in the novels.
The game does weave in established names and places. Phineas Nigellus Black, known from the books as a portrait in Dumbledore’s office, is the headmaster. Ollivander’s family is already making wands. The Gaunt family, central to Voldemort’s backstory in Half-Blood Prince, is represented by Ominis. Hogsmeade, the Forbidden Forest and much of Hogwarts castle match the books and films closely. Our history of every Harry Potter video game shows how unusual this was compared with earlier games, which closely followed the plots of the films.
Common points of confusion
- Is ancient magic part of Harry Potter canon? It is introduced by the game. It is presented as part of the Wizarding World in this period, but it is not mentioned in the books.
- Is the player character connected to famous families? The story never ties them to a known bloodline. Their ability to see ancient magic is left largely unexplained.
- Does the ending choice change the world afterward? The epilogue plays out in a broadly similar way regardless of the choice. The difference is mostly in how the player’s character is framed.
- Can Fig be saved? No. His death happens in every version of the ending.
Themes Worth Noticing
Underneath the spells and set pieces, the story is about the cost of power and who gets to hold it. Isidora wanted to relieve suffering and ended up feeding on it. Ranrok wanted justice for his people and became the thing he hated. Rookwood wanted power for its own sake. The Keepers, who saw themselves as guardians, made their own morally difficult decision when they killed Isidora. The player sits in the middle of all of them, with the same ability that ruined one person before them, and the ending finally asks them to decide what kind of person they are.
It is not the most complicated fantasy plot ever written, but it is more thoughtful than a quick playthrough suggests, and it gives the open-world school-year fantasy a backbone that keeps the main quest moving.


