Professor Minerva McGonagall assumes the role of Headmistress of Hogwarts after Severus Snape's death. The epilogue of Harry Potter and the Deathly Hallows (set 19 years later) confirms this, showing her greeting students at the Sorting Ceremony. She had served decades as Deputy Headmistress and Transfiguration professor, making her the natural successor.