Overview
"Hell Bent" is the twelfth and final episode of the ninth series of the British science fiction television series Doctor Who. It was first broadcast on BBC One on 5 December 2015.
In the episode, the alien time traveller the Twelfth Doctor (Peter Capaldi) arrives on the planet Gallifrey after escaping imprisonment by his people, the Time Lords, and takes over as the new President. He tries in vain to use knowledge of "the Hybrid", which is prophesied by the Time Lords to stand in Gallifrey's ruins and unravel the Web of Time, to save the life of his companion Clara (Jenna Coleman). Doing so causes the Doctor and Clara themselves to become the Hybrid. This episode is Coleman’s final regular appearance as a companion.
Plot
On Gallifrey, the Twelfth Doctor has escaped from his confession dial after four and a half billion years of imprisonment, alerting the Time Lords. Aided by the Gallifreyan military, the Doctor usurps and exiles Lord President Rassilon. Now the new President, the Doctor learns that Rassilon imprisoned him in the dial to force him to confess about the Hybrid, which is prophesied by the Time Lords to stand in Gallifrey's ruins and unravel the Web of Time.
The Doctor has the Time Lords retrieve Clara from her timeline the instant before her death, with her biological processes suspended in a time loop, leaving her without a pulse, ostensibly so the Doctor can consult her about the Hybrid. The Doctor flees with Clara and steals a TARDIS from the workshops under the Capitol, telling her he held out confessing to have something to bargain for her life with.
From Wikipedia (CC BY-SA 4.0).