
More from the episode
The story in 5 beats
- Contact
Near the outer planets, a crew flying on autopilot passes through something in space. So does the TARDIS, and the Doctor starts to change.
- The Nucleus
The virus wants the Doctor as the host of its mind, the Nucleus of the Swarm. It marks Leela as a reject, and the infected want her dead.
- Professor Marius and his dog
Leela gets the TARDIS to the nearest medical centre, where Professor Marius introduces K9, a robot dog he built to replace the real dog he had to leave on Earth.
A voyage inside the DoctorSpoiler · tap to reveal
Shrunken clones of the Doctor and Leela are injected into his brain to destroy the Nucleus, while Leela and K9 hold off the hospital's infected staff.
TitanSpoiler · tap to reveal
The Nucleus escapes, grows to full size and heads for Titan to breed, and the Doctor has to follow it there.
Why it still matters
This is K9's first story. Bob Baker and Dave Martin, who had already given the show the renegade Time Lord Omega in The Three Doctors, created the robot dog for it. He went on to a spin-off pilot of his own, K-9 and Company (1981), and later to The Sarah Jane Adventures and an Australian-made series, K9. John Leeson voices him here, as he did in nearly every appearance after, and also voices the Nucleus.
The rest of the serial is an honest mixed bag, and critics have said so since the week it aired. Its big idea is Fantastic Voyage turned inward: a virus takes over the Doctor's mind, so shrunken copies of him and Leela are sent into his own head to fight it. DVD Talk's John Sinnott, no fan of the plot, still praised the effects inside the Doctor's head. Stanley Reynolds of The Times complained that the BBC seemed to have "lost its touch with monsters," and The Discontinuity Guide later said "the ideas are better than the realisation."
It followed Horror of Fang Rock in Graham Williams's first season as producer. Mark Braxton of Radio Times, comparing it with the Philip Hinchcliffe years, called it "a kidified, Poundland Star Wars," though he enjoyed the "romping yarn" and thought it brought out the best in designer Barry Newbery. Part one drew 8.6 million viewers.
A dog for the road
The plan inside the Doctor's head goes wrong, and the Nucleus breaks out at human size, taking the infected staff with it to Titan Base to spawn. The Doctor is cured anyway, because Leela's clone carried her immunity into his bloodstream, and he copies the cure for Marius. On Titan he jams a door, rigs a gun to fire when the Swarm forces it, and releases oxygen into the methane atmosphere. The blast destroys the Swarm, its young about to hatch, and the base.
Back at the hospital, Marius is due to return to Earth and can't take K9 with him, so he offers the robot to the Doctor, and K9 leaves in the TARDIS with the Doctor and Leela. Baker and Martin had meant him to appear in this one story, but the BBC decided to make him a recurring character. Two models of K9 travelled with the Fourth Doctor until 1981.
Challenge the DNA
Is K9 the best thing about The Invisible Enemy?
Or skip ahead to our reading
K9, honestly. The inner-space idea is clever, and the story doesn't quite make it work. The little robot with the clipped voice is the part people remembered, and the production team noticed.
Behind the scenes
- One working title was The Enemy Within. The serial was filmed and recorded in April 1977.
- In one scene a crack is visible in a wall before K9 fires at it. The join had been hidden, but the scene was reshot with too little time to repair it.
- Reviewing part two in The Times on October 10, 1977, Stanley Reynolds noted that in ITV regions where Doctor Who faced Man from Atlantis on Saturday evenings, it was losing the ratings battle.
- Viewing figures ran 8.6, 7.3, 7.5 and 8.3 million. A BBC1 repeat on Thursdays in July and August 1978 drew between 4.9 and 6.8 million.
- Terrance Dicks's novelisation, Doctor Who and the Invisible Enemy, came out from Target Books in March 1979. On DVD the serial was paired with the 1981 spin-off pilot K-9 and Company as "K9 Tales" in 2008.
The thread
Shrinking journeys into the body, invading microbes, and the first appearance of a robot dog.
Came before
Shares DNA with
Left its mark on
DNA strand
First Contact & Invaders
The invader here is a virus with a mind, and the territory it wants is the Doctor's own body. It turns the usual alien takeover inside out, so the battle is fought in a hospital and inside a brain before it ever reaches Titan.
Every great sci-fi story is built from a handful of strands like this one. Each strand page explains how it works and traces it across shows, books and films.
If this one stayed with you
Where to go next, and why.
Watch · Film
Fantastic Voyage (1966)
The original shrink-a-team-and-inject-them adventure, with a much bigger budget, if you want to see what this story is playing with.
Watch · TNG S1
"Conspiracy"
Picard follows a trail of officers acting out of character, and it gets far darker than the Swarm ever does.
Watch · Red Dwarf
"Quarantine"
A viral outbreak in deep space, done as comedy, for anyone who found the Swarm a little funnier than intended.
Read · Novelisation
Doctor Who and the Invisible Enemy by Terrance Dicks
Dicks's 1979 Target book tells the same story without the budget limits critics kept pointing at on screen.
Your next episode
Three directions to go from here, all on Sci-Fi DNA.

More of this feeling
The Schizoid Man
Star Trek: The Next Generation
Something foreign taking over a familiar mind.

Same question, different answer
The Changeling
Star Trek
A small machine with a big personality, and what it means to be loyal.

Something completely different
Image of the Fendahl
Doctor Who
An English priory, a skull and something very old.


