The Ultimate Foe (TV story)

The Ultimate Foe is the unbroadcast title given to episodes 13 and 14, the concluding episodes of The Trial of a Time Lord, the series-long storyline that constituted Season 23 of Doctor Who. The on-screen title was simply The Trial of a Time Lord. This story marked the final appearance of Colin Baker as the Sixth Doctor. It also marked the final appearances of The Inquisitor and The Valeyard as recurring characters. This was the last of the Master's annual appearances on the show; he wouldn't appear again until Survival in Season 26. It was the final story to which longtime scriptwriter Robert Holmes contributed.

Synopsis
With the Valeyard's sinister intentions unveiled, the Sixth Doctor must venture into the Matrix to combat the personification of his inner evil...

Part thirteen
The Sixth Doctor insists that the footage from the Matrix has been tampered with. The Inquisitor brings the Keeper of the Matrix to testify. He is adamant that the Matrix can be accessed only by senior Time Lords with appropriate keys. The Doctor maintains his innocence, accusing the Valeyard of manipulating the evidence to his own ends and that someone can make a duplicate key. The Valeyard denies any such interference and closes his case.

Meanwhile, two travel pods arrive on the station. They open to reveal Mel and Sabalom Glitz. They enter the court just in time to assist the Doctor's defence, saying they had been sent by someone unknown to help prove that the Doctor acted in good faith. This anonymous benefactor makes himself known, appearing on the viewscreen from inside the Matrix - it is the Master. He entered the Matrix with a duplicate key and has been watching the courtroom drama unfold but is, for some reason, unwilling to let the Valeyard win.

(Although, it was stated by the Master, in the American telecast, that he was unwilling to let anyone else kill the Doctor. Not even the Doctor--a.k.a. the Valeyard--,himself!)

The Doctor questions Glitz about the secrets he was hoping to obtain from the Sleepers. He learns those secrets were stolen from the Matrix. In retaliation, the Gallifreyan High Council moved Earth to hide the theft and prevent a rescue. The Doctor is outraged at the corruption of his own people, realising that he has been framed to prevent the truth from emerging. The Master adds that the Valeyard is an amalgamation of the Doctor's darker impulses from the future. The High Council offered him the Doctor's remaining regenerations if he could convict the Doctor. The Inquisitor insists the trial consider all the evidence, but the Valeyard flees the court through a door into the Matrix.

The Doctor and Glitz follow through the door, finding themselves in a recreation of Victorian London created by the Valeyard. The Doctor is attacked by a hand from a rain barrel, but Glitz saves him and hands him a note from the Master which leads them to the Fantasy Factory. As they approach, Glitz is shot with a harpoon.

In the courtroom, the Master explains that the evidence presented throughout the trial was mostly correct, but with small errors designed to convict the Doctor. These included the death of Peri, who actually survived to become Yrcanos' queen. He admits that the Valeyard would make an even more powerful enemy than the Doctor, but this way he could be rid of them both. He also insists that the High Council answer for what they have done and has allowed the people of Gallifrey to witness the court proceedings.

Glitz, saved by his Mark 7 postidion life preserver, accompanies the Doctor to the Fantasy Factory, where they encounter an extremely officious bureaucrat named Mr. Popplewick. Deciding to go over his head and speak directly to the proprietor, they march into the next room, only to find an identical office with an even more evasive and infuriating duplicate of Mr. Popplewick. Before letting them proceed further, Popplewick asks the Doctor to sign a document that promises his future incarnations to the Valeyard should he vanquish the Doctor, the High Council being less than trustworthy and unlikely to keep their promise. As the Doctor steps through the next door, he finds himself alone on a beach, where the Valeyard's voice taunts him and hands emerge from the sand to pull him beneath the surface...

Part fourteen
Glitz arrives as the Doctor is dragged under, only grabbing the cloth around each of his shoes. He is amazed to see the Doctor rise out of the ground unharmed, after making a bad pun. The Doctor explains that the Matrix is unreal and that, with enough effort, he can deny the Valeyard's traps. The Valeyard appears, taunting the Doctor. He explains that he has to destroy the Doctor's good side to be free of all his positive traits. A cloud of nerve gas advances towards them, forcing the Doctor and Glitz to take refuge in a nearby beach hut that turns out to be the Master's TARDIS. The Master explains the Valeyard has to be stopped because he has none of the Doctor's morality, making him an even more evil being than himself, which vexes the Master. Lying that he wishes to help the Doctor, the Master tricks the Doctor into believing Glitz and he are retrieving his MCE from elsewhere in the TARDIS, but activates a function on his console that puts the Doctor into a catatonic state while Glitz and he hide in the corridor.

The Master's TARDIS materialises at the Fantasy Factory and the hypnotised Doctor is sent out as bait. When the Valeyard comes out to see what is happening, the Master shoots the Valeyard with his M.C.E., but the beams from his weapon bounce off. The Valeyard retaliates with explosive quills that force the Master to run away. Glitz is temporarily stunned by an explosion.

Mel arrives in the Matrix to help the Doctor. They return to the station to finish clearing his name. Mel gives evidence regarding the Vervoids, but it is not enough to prevent the Inquisitor delivering a verdict of guilty on the charge of genocide. The Doctor accepts his death sentence with surprising calm.

This is not the real courtroom, but another Matrix fantasy. On the real station, Mel and the Inquisitor watch impotently as the Doctor is taken to what he believes to be his execution. Mel is unwilling to sit by meekly. She steals the Keeper's key to enter the Matrix. She reaches the Doctor in time to save him, but he is well aware of the situation because the fake Mel had mentioned events she had not witnessed. The Doctor was hoping to encounter the Valeyard, so they head for the Fantasy Factory.

The Master, back in his TARDIS, tries to hypnotise Glitz into helping him, but has to resort to bribery when the hypnotism fails. This proves just as (or possibly even more) effective. Glitz finds the Matrix tapes containing the secrets in Popplewick's office, while the Doctor locates a list of the courtroom judges written in his own handwriting. Glitz forces Popplewick at gunpoint to take them to the proprietor, J.J. Chambers, but is willing to trade the Doctor for the Matrix secrets, which he then gives to the Master.

The Doctor exposes Popplewick as the Valeyard in disguise, since his melodramatic nature was too obvious. He finds a laser aimed through the viewscreen into the courtroom, to kill all the judges on the list as a last resort. The Master reveals to the court that the High Council has been deposed by a revolt on Gallifrey and he intends to rule in their place. He loads the tapes of the secrets into his TARDIS console, but it is a fake which freezes the Master and Glitz in the Matrix.

Mel arrives in the courtroom in time to evacuate the judges, while the Doctor stops the laser firing at the cost of creating a massive feedback surge which strikes the Valeyard, allowing the Doctor to escape back to the station. The Inquisitor dissolves the trial and tells the Doctor about Peri's true fate on Krontep. She further suggests that the Doctor, for the third time, run for the vacant presidency on Gallifrey, but he declines, stating that she would be a better candidate. He suggests that, while the Master must be punished, leniency should be shown to Glitz as he can be reformed. The Doctor and Mel depart in the TARDIS. She annoys him by mentioning carrot juice. He intends to return her to whence she came and wait to meet her in the original order. Back in the court room, the Inquisitor orders the Keeper to improve the security of the Matrix and repair it while removing the Master and Glitz. The Keeper agrees but, as he turns away, he reveals himself to be the Valeyard...

Cast

 * The Doctor - Colin Baker
 * Mel - Bonnie Langford
 * The Valeyard - Michael Jayston
 * The Inquisitor - Lynda Bellingham
 * The Master - Anthony Ainley
 * Sabalom Glitz - Tony Selby
 * Popplewick - Geoffrey Hughes
 * Keeper of the Matrix - James Bree
 * Peri Brown - Nicola Bryant (flashback footage)
 * Yrcanos - Brian Blessed (flashback footage)

Crew

 * Assistant Floor Manager - Karen Little
 * Costumes - Andrew Rose
 * Designer - Michael Trevor
 * Incidental Music - Dominic Glynn
 * Make-Up - Shaunna Harrison
 * Producer - John Nathan-Turner
 * Production Assistant - Jane Wellesley
 * Production Associate - Angela Smith
 * Special Sounds - Dick Mills
 * Studio Lighting - Don Babbage
 * Studio Sound - Brian Clark
 * Theme Arrangement - Dominic Glynn
 * Title Music - Ron Grainer
 * Visual Effects - Kevin Molloy

Individuals

 * Sabalom Glitz and Melanie Bush are brought to the space station by the Master.
 * The Master entered the Matrix using a duplicate key. He has been watching the whole trial.
 * The Valeyard and the Master have had contact.
 * The Valeyard was promised the Doctor's remaining incarnations by the High Council. According to the Master, he is an amalgamation of all the Doctor's evil, taken from between the Doctor's twelfth and final incarnation (although the Master seems uncertain as to the timing).
 * It is the Master who states/reveals Peri's true fate after the Doctor's removal from time in episode 8. He does not reveal this to the Doctor (who may easily have been imagined to disbelieve it, if he had), but to the open court in the Doctor's absence, in answer to a query by the Inquisitor.
 * Although the Inquisitor commented knowledgeably on events involving King Yrcanos and the seeming death of Peri, it is revealed here that she was apparently unaware that some actions and consequences did not occur in the way presented to the court.

Time Lords

 * The Doctor says, looking around at the Time Lords "In all my travelling throughout the universe I have battled against evil, against power mad conspirators. I should have stayed here. The oldest civilisation: decadent, degenerate and rotten to the core. Power mad conspirators, Daleks, Sontarans... Cybermen, they're still in the nursery compared to us. Ten million years of absolute power. That's what it takes to be really corrupt."
 * The Keeper of the Matrix carries the Key of Rassilon.
 * The High Council have been deposed and insurrectionists are running amok in the Capitol.
 * Sensory overload causes Time Lords to fall into a catatonic state.

Technology

 * The Valeyard has (hidden) in the Matrix a Particle Disseminator that disseminates gravitons, quarks and tau mesons (destroys matter, basically). It's a physically real weapon (disguised in apt Victorian style) that will kill all those watching the Matrix in the court room.
 * Glitz wears mark seven postidion life preserver.
 * Some of the space station furniture is made of machonite.
 * The Master has his TARDIS inside the Matrix, diguised as a beach house and a statue of Queen Victoria.

Story notes

 * This was Colin Baker's last appearance as the Doctor, though he was unaware of it at the time of filming. Baker was fired by the BBC. He was invited to come back for a final four-part story which would have ended in his regeneration, but he declined the offer.
 * Originally, Robert Holmes was to have written both episodes, but he took ill and died before he could do so. Script editor Eric Saward finished the second episode from Holmes' notes, but the original plan to end the story, and the 23rd season, on a cliffhanger leaving the battle between the Doctor and Valeyard unresolved, was rejected by John Nathan-Turner. As chronicled in the "making of" documentary included with the 2008 DVD release of the story, this led to a falling out between Saward and Nathan-Turner and Saward resigned his position as script editor. Nathan-Turner commissioned Pip and Jane Baker on short notice to compose a concluding episode.
 * This story was also known as Time Inc.
 * Part Fourteen is around half an hour long; when editing of it was completed it was discovered that it had considerably overrun, but John Nathan-Turner was able to gain permission for the series' slot to be extended by five minutes for the week of its transmission so that most of the recorded material could be retained.
 * A brief clip of Peri is seen at the story's conclusion, when it is revealed that she has not in fact been killed but has escaped to become the consort of King Yrcanos. According to commentary by Colin Baker on the 2008 DVD release, this conceit was the result of him idly asking a production team member if Peri had "really" died in Mindwarp, coupled with negative audience reaction to the character's apparent death. The same commentary also includes Nicola Bryant's generally unfavourable reaction as she watches the scene for the very first time.
 * At the very end, the Valeyard breaks the fourth wall by looking directly into the camera and laughing.
 * This is the last onscreen appearance of the Time Lords as a civilisation for twenty-three years. They would be killed off prior to the events of Series 1 of the revived series, in the aftermath of the Last Great Time War, leaving the Doctor as the sole survivor. They returned four years later in The End of Time.
 * This story features the final onscreen reference to the Sontarans until their next televised appearance in TV: The Sontaran Stratagem / The Poison Sky almost twenty-two years later.

Ratings

 * Numbers in refer to the individual parts of this story.


 * Part Thirteen (1) - 4.4 million viewers
 * Part Fourteen (2) - 5.6 million viewers

Filming locations

 * Camber Sands, Camber, East Sussex
 * Gladstone Pottery Museum, Uttoxeter Road, Longton, Stoke-on-Trent
 * Rye Harbour Nature Reserve, Rye, East Sussex
 * BBC Television Centre (TC1), Shepherd's Bush, London

Production errors
to be added

Continuity

 * Another account of when Peri encounters the Doctor again is in PROSE: Bad Therapy.
 * The Valeyard appears in PROSE: Matrix.
 * An alternate version of the Valeyard features in NOTDWU: He Jests at Scars....
 * The Inquisitor would later return as a recurring antagonist in the first three seasons of the Gallifrey audio series, in which she was given the name Darkel. She is also played by Lynda Bellingham in those productions.


 * The Ultimate Foe takes place before PROSE: Time of Your Life

Home video and audio releases
DVD release
 * The Ultimate Foe was released as part of The Trial of a Time Lord boxset on 29 September 2008.
 * Editing for the DVD release was completed by the Doctor Who Restoration Team.

VHS releases
 * The Ultimate Foe was released as Doctor Who: The Ultimate Foe.
 * It was released:
 * UK October 1993 (released with the other The Trial of a Time Lord stories in a Tardis-shaped tin with a random picture of one of the (then) seven Doctors on the base)
 * US October 1993 (same as the UK release except packed in a cardboard box in honour of Doctor Who's 30th anniversary)
 * Australia October 1993