The headmaster of Hogwarts throughout Harry Potter's attendance (1991–1998) was Albus Dumbledore.
He served from before Harry's arrival until his death in Half-Blood Prince (1997), after which Severus Snape became headmaster during the events of Deathly Hallows (1997–1998), though Dumbledore's influence remained central.