In "Order of the Phoenix", Trelawney is first put on probation by Umbridge, and later fired. However, Dumbledore intervenes to allow Trelawney to stay in the castle, as he believes that she would be in danger outside Hogwarts due to the prophecy she made during her interview, and recruits Firenze from the centaur herd in the Forbidden Forest to replace her as a way of spiting Umbridge. Dumbledore later reveals that the prophecy is why he keeps her employed as a Divination teacher. After Umbridge is ousted, Trelawney returns to teaching in "Half-Blood Prince", but has to share classes with Firenze, as he was cast out by his fellow centaurs when he agreed to replace Trelawney after she was fired, which she thinks is an outrage. In "Harry Potter and the Deathly Hallows", she is seen aiding in the Battle of Hogwarts by magically accelerating her crystal balls at Death Eaters. She uses one of these crystal balls to defend an injured Lavender against an attack by Fenrir Greyback. In the film adaptation, "Harry Potter and the Deathly Hallows – Part 2", she is seen covering someone's body, with the aid of Padma Patil.