harry was the headmaster of hogwarts after dumbledore died.
who is the headmaster of hogwarts after dumbledore died?
harry
before leaving hogwarts to accompany dumbledore in locating another horcrux – part of voldemort's soul – harry discovers from professor trelawney that it was snape who overheard the prophecy and told it to voldemort, resulting in voldemort hunting down harry and his parents. despite this and harry's angry questions, dumbledore avers his trust in snape. returning to hogwarts after retrieving voldemort's horcrux, harry and dumbledore alight atop the school's astronomy tower. gravely weakened by the horcrux's protective potion, dumbledore tells harry he must fetch snape, but before harry can leave, draco suddenly arrives, intending to carry out voldemort's order to assassinate dumbledore, closely followed by other death eaters (followers of voldemort), and snape. snape interrupts the planned murder, killing the headmaster himself. harry, who is paralysed under his invisibility cloak by dumbledore for his own protection, witnesses the kill, and is released upon dumbledore's death. enraged, he pursues snape, draco, and the death eaters as they flee the castle. snape easily blocks harry's spells and jeeringly points out harry's mistakes, but never strikes back. during the confrontation, snape reveals himself as the eponymous "half-blood prince" (being the half-blood son of muggle tobias snape and pure-blood eileen "prince"). snape passes through the school gates and disapparates with draco in tow at the book's end. the full relationship between dumbledore and snape and the reason for snape's actions remain unknown until the final book. in an interview, rowling mentioned that at this point in the series, the harry–snape relationship has become "as personal, if not more so, than harry–voldemort."
severus snape
hagrid had a long-standing friendship with dumbledore who became a sort of surrogate father to hagrid after his father's death. it was professor dumbledore who stood up for hagrid upon his expulsion and got him the job as gamekeeper and keeper of keys and grounds at hogwarts. hagrid, in turn, was a loyal friend to and agent for dumbledore in various situations. professor dumbledore would recruit hagrid as an agent of the order of the phoenix during both wizarding wars. hagrid was also trusted by dumbledore to rescue harry from his parent's collapsing home upon their deaths and later was sent to retrieve harry on his eleventh birthday, tell him of his wizarding identity and take him to diagon alley to purchase his supplies and equipment. hagrid has been protective of dumbledore and defended his honour against those who would speak badly about dumbledore such as vernon dursley. hagrid refers to dumbledore as a "great man" and dumbledore continued to help hagrid and comfort him when he was in distress. hagrid was stricken by grief when dumbledore died and wept openly at the funeral services after having carried dumbledore's body to where his tomb was to be.
rubeus hagrid