Media playback is unsupported on your device Media caption Peter Capaldi was revealed as the new Doctor on a special programme hosted by Zoe Ball

Actor Peter Capaldi has been announced as the new star of BBC sci-fi series Doctor Who.

The 55-year-old Glasgow-born star will be the 12th actor to play the Doctor, replacing out-going lead Matt Smith.

Capaldi is best known for his role as foul-mouthed spin-doctor Malcolm Tucker in the BBC series The Thick of It.

"It's so wonderful not to keep this secret any longer, but it's been so fantastic," he said after the news was revealed on a live BBC One show.

The actor had been the bookmakers' favourite to take on the role, with betting on him becoming the next Doctor suspended on Friday.

It is not the first time Capaldi has appeared on the show - he played Roman merchant Caecilius in 2008 Doctor Who adventure The Fires of Pompeii.

Analysis After Matt Smith, the youngest actor to play the Doctor, comes Peter Capaldi, one of the oldest. At 55, the same age as first Doctor William Hartnell in 1963, Capaldi's casting seems a significant nod to the past as the show celebrates its 50th anniversary. Capaldi is likely to bring gravitas - as well as humour - to a role widely regarded as one of the most prized in British television. Capaldi has a strong track record on TV, stage and in film - and is the first Doctor Who star with an Oscar on his CV (for best live action short film). His previous appearances in Doctor Who episode The Fires of Pompeii and spin-off show Torchwood will make Capaldi a popular choice among fans. But how will his regenerated Doctor play to a generation born in the 21st Century? Only time will tell.

At 55, he is the same age as William Hartnell when he was cast in the role as the first Doctor in 1963.

"Being asked to play the Doctor is an amazing privilege. Like the Doctor himself I find myself in a state of utter terror and delight. I can't wait to get started," he said.

Secret audition

Steven Moffat, the show's lead writer and executive producer, said casting Capaldi as the Doctor was an "incendiary combination".

"One of the most talented actors of his generation is about to play the best part on television."

Moffat said Capaldi had been cast after a secret audition at his house.

"We made a home video of [Capaldi] being the doctor and I showed it around and everyone said 'yes, that's the Doctor'.

Moffat added the actor had "briefly flicked through my mind" the last time he was casting the role, but he did not think he was right for the part, however "now that moment has arrived".

Capaldi said he downloaded old Doctor Who scripts from the internet and practised the lines in front of a mirror to prepare for the audition.

The 12 Doctors 1. William Hartnell (1963-1966) 2. Patrick Troughton (1966-1969) 3. Jon Pertwee (1970-1974) 4. Tom Baker (1974-1981) 5. Peter Davison - (1982-1984) 6. Colin Baker (1984-1986) 7. Sylvester McCoy (1987-1996) 8. Paul McGann (1996) 9. Christopher Eccleston (2005) 10. David Tennant (2005-2010) 11. Matt Smith (2010 - 2013) 12. Peter Capaldi (2013 - )

He revealed he was filming a BBC adaptation of The Three Musketeers in Prague when he found out he got the part.

"I had my phone on silent so I missed the call," he said. "It was my agent and I rang her up and she said 'hello Doctor' - I haven't stopped laughing since."

'Incredible incarnation'

Out-going Doctor Matt Smith welcomed Capaldi's casting, and pre-recorded a message for the new Time Lord.

"I wish my successor all the best and say good luck and good on you for getting it, because I know he's both a huge fan of the show and a really nice guy," he said.

"The casting made me ready excited and as a fan I think it's a canny choice. If I had to pick someone, I'd pick him because I think he's great. I'm excited because I know what's coming and he's going to have a blast."

Jenna Coleman, who stars as current Doctor Who companion Clara, said: "I'm so excited Peter Capaldi is the man taking on the challenge of becoming the 12th Doctor.

"With Steven's writing and his talent I know we'll be making an amazing show with an incredible incarnation of number 12. I can't wait to start this new adventure."

Media playback is unsupported on your device Media caption Peter Capaldi introduces himself as the new Doctor

Ben Stephenson, controller of BBC Drama Commissioning said Capaldi was "an extraordinarily talented actor who can seemingly turn his hand to anything".

"We can't wait to premiere his unique take on the Doctor on Christmas Day and we are sure he's going to become one of the all-time classic Doctors."

Following the announcement, The Thick of It writer Armando Ianucci tweeted: "There can't be a funnier, wiser, more exciting Time Lord than Peter Capaldi. The universe is in great hands."

Capaldi will film his first scenes on the series this autumn.