The Pyramid at the End of the World (TV story)

 was the seventh episode of series 10 of Doctor Who.

The episode is the second part of the Monks trilogy, which sees them arriving on Earth to take it over. It also saw Bill make a deal with the Monks to help the Doctor regain his eyesight, having been blind since TV: Oxygen, in which he was exposed to the vacuum of space.

Synopsis
At a war zone in Turmezistan where American, Chinese, and Russian armies are about to meet, a 5,000-year-old pyramid stands. It's very strange, but one thing raises the suspicions of the United Nations: it just appeared overnight. The aliens inside claim that humans would cause the death of all life on Earth. Soon, the Twelfth Doctor, Bill and Nardole are facing an invasion the likes of which they have never seen before. Before they invade, the aliens need the permission of humanity.

Plot
On the Doctor's recommendations, Bill brings Penny back to the flat and, in doing so, relays the events experienced in a simulation by replicas of themselves and of the Doctor (including a date between Bill and Penny interrupted by the Pope). It is at this point that soldiers flanking the United Nations Secretary General arrive in the flat, with the Secretary General explaining that they believe Bill can help them locate "the President". Bill denies she has any connection to the President of the United States (stating she would not have voted for him on account of him being "orange") but the Secretary General clarifies he is searching for the man who, in times of crisis, is officially recognised as President of Earth: the Doctor,

Penny leaves and Bill is driven with the Secretary General as he explains the source of the crisis: a pyramid in Turmezistan, a militarily disputed region which has American, Russian and Chinese troops surrounding it. Over the phone, they speak with U.S. Colonel Brabbit who clarifies that the pyramid is 5,000 years old, despite it appearing in Turmezistan less than 24 hours ago.

In the TARDIS, the Doctor monologues about how each person's death is predestined and how each action they take brings them closer to it. Elsewhere, a woman named Erica accidentally breaks her reading glasses accidentally break as she leaves her home. Although a seemingly minor event on an ordinary day, no-one realises that the sequence of events that will lead to the end of the world has begun...

Bill knocks on the TARDIS door, saying she has been looking for him and that he has been in the TARDIS for hours (he claims he was meditating). She informs him that the UN wants him to go to Turmezistan, and in the process of refusing, the Doctor exits the TARDIS to find himself aboard Boat One, already in transit. Nardole remarks they "wouldn't take 'no' for an answer", and it is implied that the UN removed the wall in the Doctor's office in order to extract the TARDIS. The Secretary General arrives, and begins to explain the situation to the Doctor.

At Agrofuel Research Operations, Erica fetches coffee for herself and her lab partner Douglas, who is severely hung-over. Despite this, she asks him to mix stage two of their biochemical project himself, due to breaking her glasses earlier. As she works, a Monk watches her through a security camera.

As UN troops set up defences around the pyramid and keep back journalists and the local populace, Bill speculates that it is in fact an alien spaceship (and the Doctor agrees). He further posits to Colonel Babbit that its placement is a message to "bring it", which the Doctor proceeds to by approaching the pyramid alone. Due to the Doctor's blindness, Nardole guides him with a microphone in his coat, up to and including the point that a Monk exits the structure to meet him. It states its race's intentions to enslave Earth but also that, rather than being "fought", they will be "invited". The Monks then set all clocks on Earth to 23:57, reflecting the symbolic Doomsday Clock; a warning, the Doctor says, that the world will end soon.

Back in the lab, Douglas struggles to read the measurements for the mixing procedure. His hazy vision causes him to misplace a decimal point, and he accidentally uses 10 times the intended amount of a particular enzyme. The two lab technicians leave the process to complete automatically, as the Monks watch on through the security cameras.

In Turmezistan, the Doctor picks up Ilya Svyatoslavovich, leader of the Russian military, in the TARDIS, accompanied by the Secretary General and Xiaolian, leader of the Chinese military. The four, along with Babbit, Bill and Nardole, meet at the UN base and discuss the reasons for the particular time and place of the Monks' arrival. The Doctor believes it is because it is here that humanity is at its weakest, and so Xiaolian recommends attacking the pyramid as a show of strength. Nardole advises that "force is never the answer" and looks to the Doctor for confirmation, but to his and Bill's surprise, the Doctor agrees with the plan and tells the soldiers to launch a co-ordinated attack. This prompts the Doomsday clock to advance to 23:58.

Later, Bill inquires as to what the Doctor is not telling her, but he says that fear rules him to the extent that he cannot even reveal what scares him. They are interrupted when the pyramid begins to emit a large beam of orange light into the sky.

On a United States aircraft preparing to bomb the pyramid, the craft is consumed by a bright light, at which point all but one (and then all) of its crew are replaced by Monks. The members of the meeting arrive at the pyramid to see the plane entrapped by the orange beam, which gently sets it down on the ground, and to see the Monks disembark and return to the pyramid. The plane's crew then exit the pyramid, unharmed, as well as some Russian sailors, who were crewing a submarine targeting the pyramid with a missile. That submarine is also dropped next to the pyramid by the orange light. A voice invites the leaders into the pyramid to talk.

As the world leaders walk through the pyramid, Bill voices her worries it could be a trap although the Doctor states it's also a chance to learn about their enemies as many traps will expose some form of weakness. At the end of the corridor a monk states that the chain of events that will lead to the end of all life on Earth has begun and that humanity itself will be at fault. The Doctor and the others are lead into a room full of Monks working a bank of monitors. Using these, the monks are able to determine many futures and have detected a catastrophe about to occur. The Monks are willing to avert this and save everyone on Earth and protect the planet forever, and their only condition is that they have to be ''asked. ''The Doctor realises this is how the Monks will take control, once they've been asked to take over and save Earth they'll never leave.

The Monks show the Doctor and other leaders what Earth will look like in a year if events proceed on their current course; it is a vision of desolation and destruction, with not a single living thing left alive on the entire planet. The Monks remind the leaders that they only need to ask for help. As the clock advances to 23:59, the Doctor asks why they need permission when they could conquer the planet in a heartbeat. The Monks explain that they don't want to rule through fear as it is inefficient; they must be loved and wanted by the people, so their conquest will last forever.

The Secretary-General, horrified by what he had seen, consents immediately. The Monks scan the Secretary-General and find his consent is given through fear, and is therefore impure. The Monks refuse to accept this consent and reduce the Secretary-General to dust. The Doctor takes charge and tells the Monks that Earth does not accept their help, as he intends to find out what is going to destroy all life and stop it himself.

At Agrofuel, Erica and Douglas are checking the plants but Douglas is feeling so nauseous that he takes off his biohazard suit's helmet to stop himself throwing up. Just then they witness all the plants they're monitoring die and turn into slime and realise something has gone badly wrong. They leave with Douglas grabbing some slime, however in his hurry and panic he forgets to close the airlock door.

In Turmezistan the world leaders consider the idea that a war is what will destroy the planet since it seems the most obvious reason. Brabbit, IIya and Xiaolian agree that they will no long fight each other and shake hands, essentially declaring world peace. However the Doomsday Clock still reads 23:59. The Doctor has already worked out that war is not what will end the world. At Agrofuel, Erica and Douglas realise how deadly the new virus is and make efforts to seal off the lab.

The Doctor explains that Monks landed the pyramid in the middle of a war zone as an attempt at misdirection, and asks what else could end the world other than war. They consider the idea that bacteria will be responsible, while the Doctor notes that whatever is happening is an accident since most plagues discriminates between lifeforms whereas all life, even the animals, will be killed. Since the Monks are trying to distract humans with the pyramid, it stands to reason that whatever is going to end the world will be already on a watchlist. He uses the sonic sunglasses to call up all top-secret documents and sets everyone to work searching them.

At Agrofuel, Erica and Douglas are working on finding out what went wrong when Douglas, who had exposed himself to the virus, collapses and dies turning into slime himself just like the plants. Erica closes the airlock door. The world leaders start to consider doing a deal with the Monks, and the Doctor tries to talk them out of it saying the price is too high. He realises that a biochemical trial of GM bacteria that reached stage two is almost certainly responsible but there's over 400 trials of that kind happening in the world. The world leaders and Bill all decide that the Monks must be surrendered to since it's a choice of conquest or death. The world leaders leave to negotiate with the Monks, and the Doctor finally decides to tell Bill he's still blind. However as he goes to do so, a plan enters into his mind that he can blind the Monks' surveillance on Earth. He sends Bill to keep an eye on the world leaders and takes Nardole with him into the TARDIS. Agrofuel is being evacuated while Erica finds the mistake Douglas made in regards to the mixture.

The Doctor and Nardole get the list of biochemical labs on UNIT's watchlist that could cause the end of the world if a mistake was made and hack into and turn off the CCTV. Since the Monks are also watching the lab, they'll be forced to restore the CCTV which will show the Doctor where he needs to be.

To be expanded.

Cast

 * The Doctor - Peter Capaldi
 * Bill - Pearl Mackie
 * Nardole - Matt Lucas
 * Secretary General - Togo Igawa
 * The Commander - Nigel Hastings
 * Colonel Don Brabbit - Eben Young
 * Erica - Rachel Denning
 * Douglas - Tony Gardner
 * Ilya - Andrew Byron
 * Xiaolian - Daphne Cheung
 * Monk - Jamie Hill
 * Voice of the Monk - Tim Bentinck

Uncredited

 * Penny - Ronke Adekoluejo

Science

 * Agrofuel Research Operations uses EC 07, EC 31 and EC 46 to genetically modify R. planticola. They have been experimenting with the bacteria for at least 26 days.
 * Douglas is also working on Experiment 7C1677, Enzyme C36 and Culture 14578.
 * The Doomsday Clock is mentioned as having been started by some atomic scientists in 1947.

Locations

 * Bill and Penny are at the pub.
 * Bill and Penny go back to Bill's flat.
 * The Doctor, Bill, Nardole and the representatives meet up in a base in Turmezistan.
 * The Doctor's office is mentioned. As the windows weren't big enough, the UN had to break down some of the wall to get the TARDIS out.
 * Bill is wearing a jacket with Okinawa printed on it.
 * Agrofuel is located in Yorkshire.

Technology

 * Bill tells Penny about the computer simulation.
 * Penny says she's getting an Uber to get home.
 * The UN car's driver is called on his iPhone.
 * Boat One is boarded again.
 * The Doctor plays his electric guitar.
 * The Doctor uses his sonic sunglasses which have once again been modified to give him very limited spatial information; enough to identify structures and data involving individuals present with him (age, height, etc), but not enough for fine details, such as reading the numbers on a combination lock.
 * The UN sends of a USAF B52 towards the Pyramid.
 * The pilot "maydays" Red 12.
 * Agrofuel uses Bowes brand computers.
 * Citizens in Turmezistan use cameras to photograph the Pyramid.
 * The UN military uses guns.
 * The UN uses Defender 110s.
 * Russia tried to use a missile from a submarine against the Pyramid.
 * GriffinFinder is a search engine.
 * The Monks used a simulation machine.
 * The Doctor tells the people at the meeting to go use Google.

Organisations

 * The Doctor is recruited by the United Nations.
 * The Doctor mentions UNIT and UNIT HQ.
 * The Doctor pays a visit to the Agrofuel Research Operations.

Biology

 * Bacteria are being researched in Agrofuel.
 * Xiaolian mentions flu and plague as possible ends to the world.
 * The Doctor mentions genetically modified bacteria.
 * Erica says the greenhouses at Agrofuel are full of Ethanol.

Species

 * Bill thinks the Monks are vampires.

People

 * Bill and Penny laugh about the Pope being in Bill's flat.
 * Bill calls the President "orange".
 * Douglas has messages on his iPad from Terry Beyer-Rees (Head of Research), Dr Patel, J. Plant, P. Spriggs, Dr Sherives, K. Moore, P. Hilton, Dr D. Newton, Dr Palmer, S. Lamont and M. Henshaw.
 * The Doctor thinks Erica calls him God when she says "Oh my God".
 * The Doctor says "By George".

Biological data

 * According to the sonic sunglasses, Bill is female, 26 years old, 167.6cm tall, weighs 130.2 pounds, has a resting heart rate of 79BPM and a body temperature of 37.6 degrees Celsius.
 * Nardole is male, 237 years old, 167.7cm tall, weighs 216.1 pounds, has a resting heart rate of 78BPM and a temperature of 30.3 degrees Celsius.
 * The Secretary General is male, 70 years old, 165.2cm tall, weighs 140.1 pounds, has a resting heart rate of 68BPM and a temperature of 37.9 degrees Celsius.
 * Xiaolian is female, 41 years old, 167.0cm tall, weighs 126.7 pounds, has a resting heart rate of 76BPM and a temperature of 37.7 degrees Celsius.
 * Don Brabbit is male, 59 years old, 177.6cm tall, weighs 141.0 pounds, has a resting heart rate of 69BPM and a temperature of 38 degrees Celsius.
 * Ilya Svyatoslavovich is male, 70 years old, 186.7cm tall, weighs 176.4 pounds, has a resting heart rate of 72BPM and a temperature of 37.6 degrees Celsius.
 * The Commander is male, 63 years old, 176.7cm tall, weighs 176.3 pounds, has a resting heart rate of 75BPM and a temperature of 37.6 degrees Celsius.
 * One Monk has a height of 204.6cm and a weight of 93.5 pounds. Another has a height of 214.3cm. The glasses are unable to detect their ages.

Food and beverages

 * Bill and Penny are drinking wine; Bill drinks white wine, while Penny has rosé wine.
 * Erica and Douglas drink coffee.
 * Water is being drunk during the meetings in the base.
 * Nardole mentions air, water, food and beer, as basic necessities.

Events

 * The Doctor says that he is against World War III.

Story notes

 * This title has the longest word count for a Doctor Who episode, with eight words. By character, however, it is not the longest. That title goes to The Doctor, the Widow and the Wardrobe, with 32 characters over Pyramid's 28. The spin-off series Class trumps them both, with 42 characters in The Metaphysical Engine, or What Quill Did.
 * This episode featured a unique opening sequence in which it jumped back and forward between "Previously" and "Now".
 * A line of dialogue referring to terrorism was reportedly excised from the episode, out of respect for the victims of the, which occurred five days prior to broadcast.
 * When the Secretary General asks about the President, Bill says she doesn't know him, and says he is "orange". While never stated in the narrative, this is a reference to Donald Trump.
 * The Doomsday Clock is maintained by The Bulletin of the Atomic Scientists Science and Security Board. As the writing of the episode took place in 2016, the time shown in the beginning of the episode is three minutes to midnight. At the time of the broadcast, however, the clock was set at two and a half minutes to midnight.
 * The United Nations is featured throughout in lieu of UNIT. This marks the first time the UN has played a major role in Doctor Who since the real-life organization requested UNIT's name be changed from United Nations Intelligence Taskforce in the mid-2000s to Unified Intelligence Taskforce.
 * When the Doctor regains his sight, "The Doctor's Theme" can be heard.
 * The title of this episode is an homage to Douglas Adams' book "The Restaurant at the End of the Universe", the sequel to the "The Hitchhiker's Guide to the Galaxy". Douglas Adams was a former script writer on Classic Who.
 * This is the last episode in which the Twelfth Doctor is seen playing an electric guitar.

Ratings

 * 4.12 million (UK overnight figures)
 * 5.79 million (UK final)

Filming locations

 * Tenerife was used again, this time for location filming in "Turmezistan", around the pyramid.
 * The laboratory in Agrofuel Research Operations was filmed in the Engineering Quarter at Swansea University's Bay Campus.
 * The outside of the Agrofuel Research Operations appears to be the London City Hall, by Norman Foster.

Production errors

 * Although referred (and credited) to as a Colonel, Don Brabbit is seen wearing the insignia of a four star general.

Continuity

 * The Doctor previously told Bill she should call Penny on a date. (TV: Extremis)
 * Penny mentions the Doctor being Bill's tutor. (TV: The Pilot)
 * Penny laughs at Bill's claim about a simulation. (TV: Extremis)
 * Bill and Penny discuss the Pope's interruption of their Shadow World counterparts' date. (TV: Extremis)
 * The Doctor returns to Turmezistan. (TV: The Zygon Inversion)
 * Boat One is boarded again. Unlike its two destroyed predecessors, the plane survives its encounter with the Doctor this time. (TV: Death in Heaven, The Zygon Invasion, The Zygon Inversion)
 * The Doctor is declared President of Earth in a crisis. (TV: Death in Heaven, The Zygon Invasion, The Zygon Inversion)
 * The Doctor says he is meditating while in the TARDIS playing his guitar. (TV Listen, The Doctor's Meditation, The Magician's Apprentice)
 * The Doctor uses the double-lock on the TARDIS doors. (TV: The Dalek Invasion of Earth, Utopia)
 * The Doctor wonders how the UN got the TARDIS out from his office, since the windows are too small. (TV: The Pilot)
 * Nardole again uses his microphone in the coat to communicate with the Doctor. (TV: The Return of Doctor Mysterio)
 * The Doctor mentions having been blind since Chasm Forge. (TV: Oxygen)
 * The Doctor refers to his reassembly of Nardole, telling Nardole he "got [his] lungs cheap", further indicating that Nardole may still be a cyborg. (TV: The Return of Doctor Mysterio, The Pilot)
 * The TARDIS is once again relocated by authorities without the Doctor's permission. (TV: The Day of the Doctor)
 * The Doctor makes fun of unfolding events like a game show. (TV: The Zygon Inversion)

DVD releases
This episode was released as part of the Series 10 DVD box set on 13 November 2017.

Blu-ray releases
to be added

Digital releases
to be added