[[quoteright:350:http://static.tvtropes.org/pmwiki/pub/images/dark_colin_3851.jpg]]
[[caption-width-right:320: The Doctor gazes into the abyss, and the audience gazes back]]
->''"In all my travels through time and space I have battled against evil, against power-mad conspirators. I should have stayed here! The oldest civilization: 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 Doctor''', finally fed up with the KangarooCourt he's been thrown into, ripping into his own people's despicable acts with a lovely monologue.

->''"Carrot juice, carrot juice, carrot juice..."''
-->The final line of the adventure; sadly, Colin Baker's final line as '''the Doctor'''. (Well, at least on TV...)

Picking right up where the previous story left off, ''The Ultimate Foe'' opens up with the Doctor being accused of genocide. The Doctor objects, and both he and the Valeyard get into a well-written argument that suddenly ends when [[Recap/DoctorWhoS23E1TheMysteriousPlanet Sabalom Glitz]] and future companion Melanie show up almost literally out of nowhere. When the Doctor asks how they got there, the Master shows up to torment the Doctor and everyone else - revealing major plot points like how Ravalox (from the first part) was really the Earth. Furthering his gloating, the Master reveals that [[WhamLine the Valeyard is really the Doctor]].

Well, not exactly. The Valeyard is a piece of the Doctor: specifically, the Doctor's dark side, split off from around the last of his regenerations. Even when being specific, this origin is incredibly abstract.

Either way, the Valeyard flees into the Matrix ''([[Film/TheMatrix no, not that one!]] We've been over this!)'' and the Doctor and Glitz pursue. Inside the Matrix, the Doctor and Glitz are tormented by the Valeyard repeatedly until finally winding up in what can only be described as a world that was co-designed by MC Escher and Charles Dickens on PCP and acid. The Valeyard continues to gloat in his own way, while Mel and the entire judge and jury stare at the viewscreen like it's the Monday Night Football game.

Not much later, things go back to the courtroom, where the Doctor is convicted of his so-called crimes and will be executed. Only it's all an illusion, and the Doctor [[ThePlan knows it's an illusion]], but Mel [[GambitPileup doesn't know that he knows]], so she runs into the Matrix to try and stop it all. The Valeyard gets all pissy about this, deciding to vanish for the time being. Meanwhile, Glitz and the Master decide to steal the records of the Matrix to make some cash in a story that, sadly, goes nowhere.

Finally, the Doctor and Mel find themselves face-to-face with the Valeyard, and his plans to destroy the current government of the Time Lords. Through a brief struggle, the Valeyard spits out technobabble about things not going his way and is finally defeated (OR IS HE...?!). The Time Lords saved, the random Time Lady presiding over the trial tells the Doctor that Peri survived and is living with [[Recap/DoctorWhoS23E2Mindwarp King Yrcanos]] after his rambling that she would be his queen... for [[BuxomIsBetter some reason]]. Mel and the Doctor leave together, presumably for him to drop her off somewhere for his future self to pick up later ''(See the Past Doctor Adventures novel ''Business Unusual''... or maybe the Big Finish Audio'' The Wrong Doctors.'' Either one works.)'', and the Sixth Doctor [[TheNthDoctor goes on]] to many, many more [[Recap/DoctorWhoS24E1TimeAndTheRani adventures]], where th-

[[WhatCouldHaveBeen Oh.]]

[[ExecutiveMeddling Shit.]]

...

...

[[AnimatedAdaptation Anybody know the name of a good animator?]]
----
The two episodes were written by four different people, though few really notice. The first episode was written by Robert Holmes and script editor Eric Saward together, with Holmes slowly dying from disease. He passed away without finishing the final episode, which was finished off by Eric Saward himself and then withdrawn when Producer Creator/JohnNathanTurner disagreed with it. The final episode was then entrusted to Pip and Jane Baker ''(no relation to Colin '''or''' Tom Baker, who themselves are also unrelated)'', who had written [[Recap/DoctorWhoS22E3TheMarkOfTheRani previously]] for [[Recap/DoctorWhoS23E3TerrorOfTheVervoids the series]]. In fact, Pip and Jane weren't even allowed to ''see'' the original script, not to mention they had no clue how the story was supposed to end.
----
!!This story provides examples of:
* AuthorExistenceFailure: Poor Robert Holmes, may he rest in peace.
** Not to mention he was supposed to write ''Yellow Fever and How To Cure It'' for this season (before the plans for a trial).
* BelatedHappyEnding: Peri, assumed dead after the events of "[[Recap/DoctorWhoS23E2Mindwarp Mindwarp]]," gets one of these.
* {{Bizarrchitecture}} with a SteamPunk flavour.
* CreepyChildrenSinging: As the Doctor explores the Valeyard's Dickensian private world, Creepy Children sing "Ring-a-Ring-o-Roses" in the background; it isn't clear if he can hear them or not.
* DefectorFromDecadence
* TheEndOrIsIt: After the Doctor and Mel depart, the Inquisitor starts organizing the surviving Time Lords with the intent of restoring order to Gallifrey. She gives an order to the Keeper of the Matrix, who then turns to the screen to reveal the Valeyard himself. Cue end credits.
* EnemyWithout: The Valeyard is a time-travelling one.
* EvilMeScaresMe
* FieryCoverup: The Time Lords are revealed to have engaged in this on a planetary scale, nearly wiping out the Earth and moving it across the galaxy, and then willing to execute the Doctor, who accidentally stumbled across the evidence without even realizing it in order to hide their own embarrassing indiscretions.
* GovernmentConspiracy: Committed by the Time Lord High Council.
* HamToHamCombat: Creator/ColinBaker vs Michael Jayston! Taking all bets, taking all bets...!
* {{Infodump}}: The first fifteen minutes of episode one are basically one long courtroom infodump courtesy of the Master, who reveals the answers to almost all of the questions that have been building throughout the entire Trial of a Time Lord story arc.
* ObstructiveBureaucrat: Mr. Popplewick inside the Matrix, the Inquisitor outside of it.
* TheOnlyOneAllowedToDefeatYou: Stated by the Master in part two as to why he's helping the Doctor.
* TheReasonYouSuckSpeech: After having put up with the KangarooCourt of the previous season and the numerous pompous and self-righteous condemnation of his character from the Time Lords, when he learns that the whole thing was orchestrated as part of a cover-up of a theft of Time Lord secrets that also resulted in the destruction of the Earth the Doctor takes the opportunity to tell the assembled Time Lords exactly what he thinks of them.
* SesquipedalianLoquaciousness: In episode two, as is pretty much par for the course in Pip and Jane Baker scripts. Key example: "there's nothing you can do to prevent the catharsis of spurious morality."
* SpannerInTheWorks: TheMaster, of all people, derails the whole plot against the Doctor. Not out of any sense of altruism, naturally, but for both the chance to [[PlayingBothSides pit two aspects of the Doctor against himself]] and topple the High Council of Time Lords.
** For bonus points, he makes himself this as literally as he possibly can, by revealing the plot from within the Time Matrix viewing screen.
* TechnologyMarchesOn: The idea that a "megabyte modem" is impressive.
** Since it's not clear exactly what it means even in context, it's also an example of gratuitous TechnoBabble.
* XanatosSpeedChess
----