Before the Flood (TV story)

 was the fourth episode of the ninth series of Doctor Who produced by BBC Wales. The episode saw the Doctor become part of a paradox in order to defeat the Fisher King, after the TARDIS refuses to return to the Drum back in the future. In a different view, when the Doctor initially arrived on The Drum, the Fisher King was already dead; thus all the events that occurred until the Ghosts were trapped were part of predestined set of events. However, if the Doctor did get killed by the ghosts, this would break the time loop and prevent the Fisher King from dying, and thus lead to an alternate timeline where Earth was conquered by the Fisher King's race.

More about Tivoli is revealed. The populace despise being liberated from enslavement, to the point that they will annoy their liberators to the point of re-enslaving them.

This story also marks the first time that a companion that has seen the Doctor regenerate tells him what they think about it. When the Doctor contemplates changing to avoid his death, Clara tells him to change after she's left his company, heavily implying that she couldn't handle trying to get used to another version of him again.

Unique to this episode, as well as the BBC Wales Doctor Who series since it first aired in 2005, the entire first scene of Before the Flood extensively broke the fourth wall by cutting over to the Doctor on board the TARDIS explaining the mechanics of a bootstrap paradox, a point integral to the story. This wouldn't be the last time the Doctor would break the Fourth Wall; in Heaven Sent, he looks at the camera and says that "I'm nothing without an audience." Although, it is possible that the Doctor wasn't actually breaking the fourth wall and was instead talking to a confused Clara; thus the viewer was watching the Doctor from her point of view.

It also featured the Doctor personally play the theme for Doctor Who for the first time on-screen, using an electric guitar (which actor Peter Capaldi himself knew how to play and had personally selected from a guitar shop previously for a scene in The Magician's Apprentice). His musical pitches blended with that of the normal theme tune arrangement used in the title sequence. This one-off version of the Doctor Who theme has received many positives reviews.

A notable aspect of the production was that part of the audio used to create the Fisher King's guttural roar and the voice of the Twelfth Doctor's hologram ghost were supplied by Corey Taylor, the lead singer of heavy metal band Slipknot.

Synopsis
A twisted survival plan is pieced together by an alien warlord called the Fisher King. The universe will feel the consequence. Can these events be stopped? Will the Doctor break the rules of the Time Lords again to ensure the Fisher King fails? And will everyone make out of this twisted play alive?

Plot
The TARDIS flies through space. The Doctor addresses the audience directly, telling a story about a time traveller who has many misadventures through his travels. At one point, he decided what was the point of time travel unless you get to meet your heroes. And so, the time traveller decides to meet his favourite musician, Ludwig van Beethoven. However, once he arrives in 18th century Germany, there is no sign of the composer whatsoever; not even the Beethoven family has any idea who Ludwig is. Beethoven literally does not exist.

The Doctor stops his story briefly, grabbing a bust of Beethoven and explains that this never really happened; he's met Beethoven, who was very intense and loved arm-wrestling. He is just using the composer as an example of the Bootstrap Paradox, telling the audience to "Google it" if they want to know the specifics.

Resuming his story, the Doctor explains the time traveller panics at the idea of a world without Beethoven's music. The traveler remembers he brought sheet music for Beethoven to autograph. As a result, he copies out all the music and gets them published, effectively "becoming" Beethoven. And history continues on with barely a feather ruffled. Grabbing his electric guitar, the Doctor turns on the amp attached to it. Tuning it, the Doctor asks, how did the music first originate? Was it ever created in the first place? Is it's existence a loop without a beginning or end? " Who put all those notes and phrases together? Who really composed Beethoven's Fifth?" and plays the opening bars on his electric guitar.

In 1980, the TARDIS materialises. The Doctor and O'Donnell exit the TARDIS, noting that Bennett is still throwing up. When the Doctor notes that it usually happens, O'Donnell points out it's unlikely his companions ever did that on their first trips. He notes that she knows a lot about him; O'Donnell explains that she used to be in army intelligence until she hung a coworker out a window for angering her.

Bennett joins them, thinking his lunch made him ill. The Doctor explains that they've arrived at the same location, only before the flood, on the day that the spaceship landed. They find the spaceship near by, with a body bag in it; the strange writing is also not present. They are soon greeted by a very much alive Albar Prentis. The Doctor notes that he meet a Tivolian before, and is not a fan of the species. Prentis laughs, noting that his species have a tendency to annoy.

They ask about the body in the ship, to which Prentis explains is the body of the Fisher King, who ruled Tivoli for a decade before the Arcateenians liberated them. However, the upset Tivolians ended up annoying them so much, that the benevolent species ended up enslaving them next. Bennett flatly states "My first alien, and he's an idiot"; he thinks Tivolians are morons for favouring enslavement. Prentis continues his explanation; in accordance to Arcateenian law, the body of the Fisher King is to be buried at a "savage, barren outpost." The Doctor explains that it's the Earth, not the site that is considered such.

Back in the future at the underwater base, Clara, Cass and Lunn see the Doctor's ghost is not hostile, just standing in place and muttering. Cass sees that the Doctor is utter something different from the other Ghosts; "Moran, Prichard, Prentis, O'Donnell,, Clara, Bennett, Doctor, Cass." It's a list of who dies in the order in which they are killed. However, Lunn's name is not on the list.

When the Doctor contacts Clara and is informed about his ghost, he is badly shaken by this certain knowledge of his future. Clara forcefully encourages him to try to change events, but the Doctor argues that he cannot and ultimately accepts the eventuality that he must die to keep events in motion. Clara yells at him to regenerate after she's not his companion anymore; she can't take getting used to him having a new personality allover again. The Doctor promises and tries to get information from his ghost, but it instead  unlocks the Faraday cage, releasing the other ghosts. The Doctor instructs them to go into the cage for their own protection, but to leave the phone outside so he can contact them in case the situation with the Ghosts changes. They comply, managing to evade the Ghosts.

In the meantime, Prentis returns to his ship to find the Fisher King missing and the strange symbols have appeard. At that moment, he surprised by the Fisher King, very much alive and having faked his death. He shoots Prentis dead. The Doctor, O'Donnell and Bennett rush back the hearse to stop the chain of events, but find they have been too slow to figure out the Fisher King's plans. The Doctor tells the duo to wait in the TARDIS, but O'Donell refuses to listen to him. Hearing a roar from the mighty monarch, the trio run into the buildings, hoping to avoid becoming Ghosts. Hearing the stomping, mechanical footsteps of the Fisher King pass by, O'Donnell breathes a sigh of relief. However, she is soon surprised to find out that the Fisher King tricked her; she screams in horror as the monster shoots her. The Doctor and Bennett rush to find O'Donnell dying, and the Fisher King nowhere to be seen. As O'Donnell dies, Bennett realises the meaning of the list. Bennett yells at the Doctor for doing such a terrible job at trying to save them; he only suggested the safety of the TARDIS instead of leading them to it.

Since Clara will be next, the Doctor tells Bennett that he is attempting to save Clara, not himself. He tries to return to the future to achieve this, but the TARDIS won't let him leave - the Doctor is locked in his timestream - and instead goes half an hour back in time. They find Prentis alive, and the Doctor stops Bennett from trying to prevent his and O'Donnell's deaths; "If you save them, then somebody that was supposed to be dead is alive. Then you really ARE seeing ghosts." It's obvious as Bennett looks at O'Donnell that he loved her, leaving him saddened.

Back in the future, O'Donnell's ghost appears in the future and steals Clara's phone, her only means of contacting the Doctor; she had the knowledge of this before dying, therefore allowing her an advantage that the other Ghosts did not. Clara realises that, as Cass refused to allow Lunn into the ship, he never saw the writing on the wall. Therefore, the message is not encoded in his brain, and the ghosts won't attack him. As soon as Lunn leaves, Cass signs something offensive to Clara to voice her anger. "Ok. Did not need help to understand that." Clara mutters to herself.

Meanwhile, Lunn finds the phone inside the canteen; however, this was a trap by the Ghosts to use him as bait to lure in the last two potential victims. When Lunn fails to return, Clara agrees to accompany Cass to search for him. However, they get separated; Clara wastes a few moments calling for Cass before remembering that Cass is deaf and cannot hear her. Leaving Bennett in the TARDIS, the Doctor decides to go confront the vile Fisher King about the abominations he's created and the deaths he's violated. Finding the stasis chamber, the Doctor explains the future that the Fisher King engineered. He then comes face-to-face with the monstrous King, who knows that the Doctor is a Time Lord; he knows that the Time Lords battled so greatly, that the entire universe felt the effects. Hearing to coordinates tick away in the Doctor's head, the Fisher King sees that he can make a strong transmitter out of the Doctor; once enough Ghosts are created, the signal will reach the Fisher King's people, who will bring an armada to conquer Earth. The Doctor notes that could work, if only he hadn't erased the words on the ship. The Fisher King thinks he's bluffing; however, the Doctor points out that any change to the future by preventing the Fisher King from conquer the Earth is better. The Fisher King races back to the ship only to discover the writing still there. He realises the Doctor tricked him and has used one of the power cells (shown as missing in the earlier episode) to destroy the dam wall, flooding the town and killing the Fisher King.

TARDIS Security Protocol 712 activates with Bennett still inside, but the Doctor's whereabouts remain unknown as the town floods.

After narrowly avoiding being killed by Moran's ghost, Clara and Cass regroup with Lunn in the hangar. The Ghosts converge in the room, but suddenly the chamber opens and the Doctor springs out. "Don't kiss me; morning breath." The Doctor turns on his sonic sunglasses, causing the Fisher King's roar to come over the speakers. Clara asks what's happening, to which the Doctor explains it's the call of the Ghosts' master, which is calling them to the source. It turns out to be coming from the Doctor's ghost. Once all the ghosts are in, the Farday Cage is closed and the ghost Doctor vanishes.

Later, the Doctor has put the sonic sunglasses on Clara to erase the coordinates from her memory. He explains that when he was brought onto the base, his sonic sunglasses went to work with the plan to engineering the ghosts' capture; no-one was going to die after O'Donnell, so they were safe. The Doctor then erases the coordinates from Cass's mind. He then mentions that the erase might have affected some of her other memories; he then wonders where Bennett got to as he needs a memory wipe as well. It turns out Bennett is staring at O'Donnell's ghost in the Faraday cage; he wonders what will happen to them. The Doctor informs Bennett that UNIT will cut the cage out and toss into space, where the lack of a magnetic field will cause the ghosts to die. Bennett asks Lunn to translate that both Cass and Lunn should admit their love to each other. Lunn complies, surprising Cass, who kisses him full on the lips with passion. Lunn is likewise happy to no longer hide his feelings.

The Doctor and Clara leave in the TARDIS. The Doctor tells Clara that the order the people would die in was entirely fictional, but he placed Clara's name second to motivate himself to action. Clara asks the Doctor how he knew what to make his ghost's hologram say. He informs her that he only knew what he had to do because he found out through future knowledge of what had been done. He begins to explain to her the idea of the bootstrap paradox...

Cast

 * The Doctor - Peter Capaldi
 * Clara - Jenna Coleman
 * Moran - Colin McFarlane
 * Cass - Sophie Stone
 * Lunn - Zaqi Ismail
 * O'Donnell - Morven Christie
 * Bennett - Arsher Ali
 * Pritchard - Steven Robertson
 * Prentis - Paul Kaye
 * Fisher King - Neil Fingleton
 * Voice of Fisher King - Peter Serafinowicz
 * Roar of Fisher King - Corey Taylor

Individuals

 * The Doctor has a statue of Beethoven's head in his TARDIS.
 * Posters of Russian leaders Joseph Stalin and Vladimir Lenin are seen.
 * The life of a person who is deaf is explored, in which Cass walks down the base hallway unable to hear the Moran ghost dragging an axe along the floor, and further when Cass stops to touch the ground, feeling the vibrations in the floor from the axe Moran is dragging.
 * When Bennett throws up outside the TARDIS due to being sick during time travel, O'Donnell said "One small step for man, one giant... Bleaurgh.", a reference to Neil Armstrong's famous line upon landing on the Moon: "One small step for man, one giant leap for mankind."

Food and beverages

 * Bennett said he had eaten a prawn sandwich.

Music

 * The Doctor had a collection of vinyl records in his featuring the works of a number of great composers: one from Franz Liszt, Heather Harper singing Richard Strauss's "Four Last Songs" and "Songs With Orchestra", two Haydn records (one is "Haydn symphonies"), and Beethoven's 5th.

Organisations

 * The Doctor says that the Faraday cage will be extracted and taken by UNIT into space, where the ghosts will eventually disappear without the electromagnetic field of the Earth to sustain them.

Story notes

 * This episode adds an electric guitar counter-melody to the title theme, played by Capaldi himself, tying off of the Doctor playing Beethoven's Fifth Symphony on his electric guitar at the end of the cold opening. This is a one-off variant that is not repeated in the succeeding episodes, despite a positive reception from the fans.
 * The Radio Times programme listing was accompanied by a small colour head-and-shoulders shot of the Doctor meeting Prentis, with the accompanying caption "Doctor Who / 8.25 p.m. / Raising the dead: the Doctor comes face-to-face with a reanimated Prentis (Paul Kaye)".
 * The working title of the story (and the prior episode) was Ghost in the Machine. (DWM 492)
 * According to an interview she gave on the US chat show Conan in September 2015, the clockwork squirrel glimpsed sitting on top of the Magpie speaker in the pre-credits sequence is now in the possession of Jenna Coleman.
 * The title is a play on After the Flood, the title of the first chapter of Stephen King's masterpiece It.

Ratings

 * BBC One overnight: 4.38 million
 * BBC America overnight: to be added
 * UK final ratings: 6.05 million

Filming locations
Caerwent Training Area

Production errors

 * The "Next Time" trailer for The Girl Who Died features an unfinished effects shot of Clara floating in space.
 * The Fisher King's gun is missing when he sees the dam break up, but is back in his hand when he roars in defiance of the oncoming flood.

Continuity

 * The guitar amplifier at the start of the episode features the Magpie Electricals logo. (TV: The Idiot's Lantern)
 * Upon the amplifier is the Doctor's clockwork squirrel. Clara had previously mentioned that the Doctor dismantled the TARDIS radio and used the parts to make the clockwork animal. (TV: Under the Lake)
 * The Doctor uses his electric guitar. (TV: The Magician's Apprentice)
 * Upon learning from the Doctor that they have travelled back in time to 1980, O'Donnell notes that it is pre-Harold Saxon (TV: The Sound of Drums / Last of the Time Lords) as well as "pre-the Moon exploding and a giant bat coming out." (TV: Kill the Moon)
 * When O'Donnell notes that Bennett is throwing up, the Doctor says that time travel does that sometimes. (TV: The Caretaker) O'Donnell doubts that Rose, Martha and Amy did so on their first trips. (TV: The End of the World, The Shakespeare Code, The Beast Below)
 * O'Donnell mentions the TARDIS is "bigger on the inside" (TV: An Unearthly Child, etc), but is one of the few to stay calm about it (momentarily). (TV: The Vampires of Venice, COMIC: Assimilation²)
 * When meeting Albar Prentis, the Doctor notes that he has met Tivolians before and that he isn't "a fan." (TV: The God Complex) In that story, one ruined his plans and cost additional lives.
 * The current masters of Tivoli who have sent Prentis to Earth to bury the Fisher King are the Arcateenians. (TV: Greeks Bearing Gifts, Invasion of the Bane)
 * The Doctor says "I've had a good innings" when he prepares to meet his potential end. The Sixth Doctor said this right before regenerating in two differing accounts, AUDIO: The Brink of Death and PROSE: Spiral Scratch.
 * The Doctor repeats the phrase "tick-tock" while contemplating his apparent death. During his previous incarnation's life, the Peg Dolls' nursery rhyme also used the phrase for the same purpose (TV: Night Terrors, The Wedding of River Song).
 * The Doctor calls his current regeneration a "clerical error", referring to the fact that it is in fact the first of a new regeneration cycle, given to him by the Time Lords. (TV: The Time of the Doctor)
 * This is the second time the Doctor has landed the TARDIS in a location at the height of the Cold War. (TV: Cold War)
 * The Doctor has finally got around to patching the TARDIS phone back through the console unit. (TV: The Time of the Doctor)
 * The Doctor tried before to fight time itself. (TV: The Waters of Mars) only then he went insane in his fight for victory.
 * The Cloister Bell rings. (Logopolis et.al.) this is the second time in a row, having sounded only hours before. (TV: Under the Lake)
 * Clara mentions the words the ghosts are saying. (TV: Under the Lake)
 * The Doctor mentions that even the tiniest change of history can change the future. (TV: The Aztecs, et al)
 * The Doctor tells the Fisher King that people who know they're going to die have nothing left to lost. His predecessor voiced a very similar sentiment when confronting the Mara during the Siege of Trenzalore. (PROSE: The Dreaming)
 * Clara reminds the Doctor that he owes her and that it means he has to come back. (TV: The Magician's Apprentice)
 * Clara tells the Doctor that she "isn't ready yet" to lose another person she cares for. (TV: Death in Heaven)
 * Clara acknowledges that she likely will not be the Doctor's companion forever and that another will "come after me". (HOMEVID: Clara and the TARDIS).
 * The Doctor's blackboard is seen. (TV: Into the Dalek, Robot of Sherwood, Listen, Time Heist)
 * The Doctor states that Earth is under his protection. (TV: The Christmas Invasion, The Eleventh Hour)
 * The Doctor uses his enemies' resources against them. (TV: The End of the World, Tooth and Claw, The Shakespeare Code, Flatline, etc)
 * The Eleventh Doctor also encountered a bootstrap paradox in the form of a Time Lord hypercube. (AUDIO: The Time Machine).
 * Clara tells Bennett to trust that she knows what it feels like to see a loved one die. (TV: Dark Water/Death in Heaven)
 * Security Protocol 712 is activated again. (TV: Blink) The protocol has been updated to use an image of the Twelfth Doctor who is seen wearing his formal Series 8 suit (last seen in TV: Death in Heaven, this is its only appearance in Series 9).
 * The Doctor said the Fisher King played around with life and death. He previously told the Bad Wolf Rose Tyler to stop as she couldn't control it (TV: The Parting of the Ways)
 * The Fisher King mentions how the Time Lords became the most warlike race in the galaxy. (TV: The End of Time, The Night of the Doctor, The Day of the Doctor) and how the Doctor is more willing to sacrifice himself rather than change the past or future, (TV: The Fires of Pompeii, The Time of the Doctor)
 * The Doctor said his ghost was a hologram like the one made of Clara. (TV: Under the Lake)
 * The Doctor mentions the base's day mode. (TV: Under the Lake)
 * The Tenth Doctor had already claimed to have met Beethoven. (TV: The Lazarus Experiment, Music of the Spheres)
 * The Doctor encountered a similar bootstrap paradox during his original incarnation, when he gave the idea of the Trojan Horse to the Greeks based upon accounts of that very incident. (TV: The Myth Makers) Another specific one was the "Fall of the Eleventh' Arc, which was complete accident on part of the Kovarian Chapter. (TV: The Time of the Doctor)
 * Another bootstrap paradox was shown when the Tenth Doctor met the Fifth Doctor during an accidental melding of their two TARDISes (TV: Time Crash). The Twelfth Doctor uses a similar line as the Fifth Doctor, who remarks on the Tenth Doctor's solution to their dilemma, "You remembered being me watching you doing that. You already knew what to do because I saw you do it." A nearly identical scenario also occurs between two versions of the Eleventh Doctor in TV: Time''.
 * Clara also previously created such a paradox in TV: Listen in which she accidentally creates the nightmare that the Doctor later investigates; she creates a second one by implanting the concepts of "fear is a superpower" and "fear makes companions of us all" in the young Doctor's mind after hearing the Doctor utter them.
 * When the Doctor goes back 30 minutes in time, he sees himself and watches the scene, much like when the Ninth Doctor and Rose did. (TV: Father's Day). He holds Bennett back from saving O'Donnell, fearing an incident like when Rose prevented her father's death.
 * Upon arriving at the town in the 1980's, the Doctor licks his finger and raises it to the wind to confirm the date, as done previously by his predecessor. (TV: The Time of Angels)

DVD releases
Before the Flood was released on DVD as part of "Doctor Who: Series 9, Part 1" on November 2 in region 2 and November 3 in region 1.

Blu-ray releases
Before the Flood was released on Blu-ray as part of "Doctor Who: Series 9, Part 1" on November 2 in region 2 and November 3 in region 1.