The Valeyard () is a fictional character from the long-running British science fiction television series, Doctor Who. He is described by the Master as an amalgamation of the Doctor's darker sides from between his twelfth and final incarnations. In the story The Trial of a Time Lord, comprising the whole of Season 23, the High Council of the Time Lords appoint the Valeyard as prosecutor at the Sixth Doctor's trial, hoping to have him executed and thereby remove the sole witness to their near destruction of life on Earth. Character history In the show The Valeyard appears in all four segments of the 1986 serial The Trial of a Time Lord – The Mysterious Planet, Mindwarp, Terror of the Vervoids and The Ultimate Foe. In episode 4 of The Mysterious Planet it is stated that "valeyard" means "learned court prosecutor" in Gallifreyan. During the course of the trial, the Doctor was accused of "conduct unbecoming a Time Lord" and transgressing the First Law of Time. As prosecutor, the Valeyard presented the events of The Mysterious Planet and Mindwarp as extracts from the Matrix, the computer network that serves as the repository of all Time Lord knowledge. The Valeyard used these extracts as evidence of the Doctor's meddling in time and space. Throughout the presentation of the evidence the Doctor barked at the Valeyard, calling him names such as "the Boneyard," "the Scrapyard," and "the Knacker's Yard," and only the interventions of the Inquisitor, another Time Lord, kept the trial going. What was not discovered until later was that the Matrix extracts had been tampered with to show the Doctor in the worst possible light. The Doctor was unable to directly contradict some of the actions shown, as his extraction from time had disoriented his memory. In The Mysterious Planet this involved the editing of particular scenes. Scenes of the mercenary Sabalom Glitz attempting to buy "secrets" from the robot Drathro were censored completely. In Mindwarp substantial portions of the extract were falsified entirely by the Valeyard. The most significant alteration was when the Time Lords intervened in the brain transplant experiments of Lord Kiv and his scientist Crozier. In the Matrix extract, it appeared that Yrcanos was maneuvered into killing the Mentors after Kiv's mind had been transplanted into the body of the Doctor's companion Peri – the Doctor having apparently abandoned Peri to save himself after exposure to one