Players must first complete all four Keeper trials in the main story before they can access a main story quest, The Final Repository. This quest contains the good and the bad endings, with Hogwarts Legacy's ending affected by player choices to a certain extent. Players must also defeat Ranrok during the quest before they can view their chosen ending cutscene. Players should be aware that significant spoilers lie ahead.