The Hogwarts headmaster portrayed by Michael Gambon in the Harry Potter films is Albus Dumbledore.
Gambon played Albus Dumbledore in the film series from Harry Potter and the Prisoner of Azkaban through Harry Potter and the Deathly Hallows – Part 2. Richard Harris portrayed Dumbledore in the first two films before his death in 2002.
In Rowling’s story, Dumbledore is the headmaster of Hogwarts for most of Harry’s school years. He is a powerful wizard, a mentor to Harry, and a leading opponent of Lord Voldemort. His full name is Albus Percival Wulfric Brian Dumbledore, and his history includes a youthful friendship with Gellert Grindelwald.
The casting change can cause confusion because both actors portray the same character. Gambon’s first appearance as Dumbledore is in the third film, not the third novel’s publication year. Dumbledore’s role grows increasingly central as the series reveals his plans for preparing Harry to face Voldemort.