Steven Moffat has said that Peter Capaldi “came close” to staying on in Doctor Who.

The Twelfth Doctor will regenerate in the 2017 Christmas special, but he could have carried on into Chris Chibnall’s debut series.

“It took Peter a long time to make up his mind,” Moffat tells Broadcast in a new interview.

“Chris tried to persuade him to stay [on for Series 11 in 2018].”

He adds: “I knew it was a possibility that he’d leave because Doctors tend to do three years. I thought that he might want to opt out, rather than go through the trauma of a change in command and maybe leaving a year later anyway. But I think he came close to staying.”