MC from Hogwarts legacy was put into an ancient magic coma as a direct result of the Battle of Hogwarts, during the Goblin Uprising of 1890-1891. He is re-awakened in the summer of 1994, right before the World Quidditch Cup. How will our MC fare at the same school he saved, in a new century, with no friends or family, and threats of another dark wizard?
The protagonist receives a letter from Professor Weasley, containing the confirmation of attending Hogwarts School of Witchcraft and Wizardry as a fifth-year student, with Professor Fig assigned as the protagonist's mentor. Fig escorts the protagonist from London to Hogwarts via a flying coach. While discussing an unknown artefact, a dragon attacks them. When the dragon rips the coach apart, Fig and the protagonist reach for the key that was inside the artefact, revealed to be a Portkey that teleports the duo to Gringotts. Using the key to enter an old vault, the protagonist learns they can see traces of ancient magic. The duo is confronted by a hostile goblin named Ranrok. Fig and the protagonist escape to Hogwarts, right as the Sorting Ceremony is about to end. The protagonist is sorted into Ravenclaw and begins their term at Hogwarts.
The protagonist learns various spells during classes, while also exploring Hogwarts, Hogsmeade, and outer regions with companions Sebastian Sallow, Poppy Sweeting, and Natsai Onai. Meanwhile, Professor Fig is investigating the secrets of ancient magic, supported by the protagonist. They ultimately discover a secret room below Hogwarts known as The Map Chamber. The chamber contains four talking portraits of past Hogwarts professors who refer to themselves as "Keepers", led by Percival Rackham; their goal is to protect the secrets of ancient magic from the Wizarding World. The protagonist learns that the fifth Keeper, Isidora Morganach, disagreed with the other four as to the use of ancient magic, leaving a repository of power that Ranrok is attempting to find, as he wishes for goblins to rise up against the wizarding world. A group of dark wizards, led by Keeper Charles Rookwood's descendant Victor, collaborates with Ranrok in exchange for a share of his power.
In order to reveal the secrets of ancient magic, the protagonist must complete four trials left by the Keepers. Each trial features dangerous and complicated puzzles requiring the use of spells the protagonist has learned over the game, each trial leading to a "pensieve", a magical device to store and review memories. Each pensieve reveals the history of ancient magic and its connection to Isidora Morganach: Isidora used ancient magic in an attempt to "cure" negative emotions, particularly from her suffering father. The Keepers realized that Isidora was inhaling the extracted emotions to increase her own power, using this practice on students, draining their emotions into a large repository of ancient magic. The Keepers attempted to persuade her against this but fail to do so. With no alternative in sight, one of the Keepers ultimately used the killing curse to eliminate Isidora. The Keepers decided to keep the repository a secret. As the protagonist completes all trials, they receive one final task: to create a special type of magic wand consisting of the artefacts found at the pensieves.
Professor Fig sends the protagonist to Ollivander in order to craft the Keeper's wand. As the protagonist leaves Ollivander's, they are ambushed by Victor, who proposes an alliance against the goblins. The protagonist refuses, resulting in a battle in which the protagonist manages to defeat Victor.