K9 Mark I was created about the year 5000 by Professor Frederick Marius, who gave the dog to the Fourth Doctor and Leela. He was left behind with Leela on Gallifrey. (TV: The Invasion of Time) Some time later, he was blown up by a bomb on Gallifrey, (AUDIO: Imperiatrix) but survived. This model came to an end when Alistair Gryffen's Space-Time Manipulator randomly pulled him to London in the year 2050. There, he almost immediately self-destructed to protect Gryffen and a group of teenagers from Jixen warriors. (TV: Regeneration)
He usually did not engage in computer-like literal thinking, though on one occasion he followed Romana's instructions to "forget it" to the letter and erased all knowledge of tennis from his memory banks. (TV: The Stones of Blood) In another he took Romana's exclamation "Blast it!" as a command, and fired his blaster. (TV: Shada, WC: Shada, AUDIO: Shada, PROSE: Shada). Despite this, he occasionally showed a sense of humour, jokingly answering the question "What do you eat?" with "Ball bearings" (AUDIO: The Beast of Kravenos).
Within the series' narrative, K9 is a robot dog acquired by Doctor Who's title character in the 1977 serial The Invisible Enemy. The first two incarnations of the character travelled alongside the Fourth Doctor (portrayed by Tom Baker) until 1981. In these stories, K9 proved useful for the powerful laser weapon concealed in his nose, his encyclopaedic knowledge and his vast computer intelligence. By 1981, each of the two models of K9 which travelled alongside the Doctor had been left with one of the Doctor's female companions. The character subsequently transitioned into spin-off territory. Producers hoped K9's popularity with children would launch the series K9 and Company, led by actress Elisabeth Sladen in the role of companion Sarah Jane Smith alongside a new K9. In 2006, K9 reappeared in the revived series of Doctor Who. Although the character's appearances in the 2007 spin-off The Sarah Jane Adventures were hampered by the concurrent development of the K9 spin-off, the character began to appear full-time in both K9 and The Sarah Jane Adventures, depicting adventures of the original K9 Mark I and of Mark IV, respectively.