1. Alive in the Main Series:
In the main Harry Potter series, Professor McGonagall remains alive and active until the very end. She plays a significant role throughout the books as the Deputy Headmistress and Transfiguration Professor at Hogwarts.
2. Role in the Battle of Hogwarts:
During the Battle of Hogwarts in Harry Potter and the Deathly Hallows, Professor McGonagall courageously fights against the Death Eaters and Voldemort's forces alongside her fellow professors and members of the Order of the Phoenix. She survives the battle and remains a pillar of strength for the Hogwarts community.
3. Post-Battle of Hogwarts:
Following the defeat of Voldemort, Professor McGonagall becomes the Headmistress of Hogwarts, ensuring the restoration and rebuilding of the school. She leads the school with wisdom and compassion and continues to guide the students through their education.
4. Later Years:
As the years go by, Professor McGonagall continues to play a significant role in the wizarding world. She remains an influential figure in the Ministry of Magic and is deeply respected by the magical community.
5. Epilogue:
In the epilogue of the final book, Harry Potter and the Deathly Hallows, we see Professor McGonagall attending the wedding of Harry Potter and Ginny Weasley. She is mentioned to be in excellent health and continues to guide and support the new generation of Hogwarts students.
It's worth noting that these details pertain to the main Harry Potter series written by J.K. Rowling. Other non-canonical works or adaptations might portray different interpretations or timelines that deviate from this summary.