Severus Snape teaches Potions before becoming headmaster of Hogwarts.
Snape is the Potions master when Harry first arrives at Hogwarts. He is portrayed as highly skilled in the subject and intimidating toward students, especially Harry. His classroom lessons introduce brewing, ingredients, precise instructions, and the importance of following magical procedures.
Snape later becomes the Defence Against the Dark Arts teacher in Harry Potter and the Half-Blood Prince. He is appointed Hogwarts headmaster during the following book, Harry Potter and the Deathly Hallows, while the school is under Voldemort’s control.
His teaching history is part of the series’ deliberate uncertainty about his loyalties. Snape appears hostile for much of the story, but later revelations provide additional context for his actions and his relationship with Harry’s parents.