Full story
After burying Dobby, Harry asks the goblin Griphook to help them break into Bellatrix's vault at Gringotts, where he believes a Horcrux is hidden. Griphook agrees in exchange for the Sword of Gryffindor. In the vault, the trio finds Helga Hufflepuff's cup. Griphook grabs the sword and ditches them. Cornered, they free the dragon guarding the bank and escape on its back.
In a vision, Harry sees Voldemort enraged by the theft and realizes a Horcrux tied to Rowena Ravenclaw is hidden at Hogwarts. In Hogsmeade, Aberforth, Dumbledore's brother, helps the trio and calls Neville, who leads them through a secret passage into the Room of Requirement. Harry confronts Snape, now headmaster, in front of the whole school. McGonagall duels him, Snape flees, and she gets the castle ready for war. Luna sends Harry to the ghost of Helena Ravenclaw, who reveals that Voldemort hid her mother's diadem in the Room of Requirement.
In the Chamber of Secrets, Ron and Hermione destroy the cup with a basilisk fang. In the Room of Requirement, Draco, Blaise Zabini and Goyle corner Harry. Goyle unleashes Fiendfyre and dies; the trio saves the other two. Harry stabs the diadem with the fang, and Ron kicks it into the fire. As Voldemort's army storms the castle, Harry realizes the last Horcrux is the snake Nagini. The trio overhears Voldemort telling Snape the Elder Wand won't serve him while Snape lives, since Snape killed its previous master. Nagini attacks Snape. Dying, he gives Harry his memories. Fred Weasley, Remus Lupin and Nymphadora Tonks are among the many killed in the battle.
In the Pensieve, Harry learns everything. Snape loved Lily since they were kids and, after her death, became Dumbledore's double agent. Even the headmaster's death was planned between them. The silver doe in the Forest of Dean was Snape's Patronus. And Harry has carried a piece of Voldemort's soul since the night the curse failed, so he has to die by Voldemort's hand. Using the Resurrection Stone, hidden in the Golden Snitch, Harry sees his parents, Sirius and Lupin, then walks into the Forbidden Forest. Voldemort casts the Killing Curse. Harry wakes up in a place that looks like King's Cross, where Dumbledore explains that the piece of Voldemort inside him is gone and that he can choose to go back.
Voldemort carries Harry's body to Hogwarts and demands surrender. Neville pulls the Sword of Gryffindor from the Sorting Hat, and Harry reveals he's alive. The Malfoys walk away from Voldemort. Molly Weasley kills Bellatrix, Neville beheads Nagini, and Harry's Expelliarmus turns Voldemort's curse back on him. Voldemort dies. Harry explains that the wand never truly obeyed the Dark Lord: its real master was Harry, ever since he disarmed Draco. He snaps it. Nineteen years later, Harry, Ginny, Ron, Hermione and Draco bring their kids to the platform at King's Cross to catch the train to Hogwarts.

