By the end of Harry Potter and the Deathly Hallows, Harry Potter becomes the master of the Elder Wand after disarming Draco Malfoy (who had disarmed Dumbledore). Harry later uses the wand to repair his own holly wand, then snaps the Elder Wand in two and discards the pieces, ending its line of power.
The wand's allegiance passes through: Dumbledore → Draco (by disarming) → Harry (by disarming Draco).