During Romana's Presidency of Gallifrey, Leela became her bodyguard, and the two K9 units were forced to work together, not always amicably. After Matthias had replaced Romana as President, he nominated her to undertake a mission to find a cure for the Free Time virus, to be followed by exile. K9 opted to remain in the employ of Matthias, fighting the infection on Gallifrey. However, Braxiatel and K9 had planned another operation. Realising that the only cure to the virus was to end the regeneration capabilities of the Time Lords, Braxiatel used a Time Scoop to collect the Time Lord bio-data archive (along with K9). Romana was asked to decide whether to administer the cure or let Gallifrey die and rebuild it from scratch with the bio-data archive. (AUDIO: Gallifrey)
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)
Whereas Sarah Jane lifted K9 Mark III into and out of her car, (TV: A Girl's Best Friend) K9 Mark IV had a "hover mode" allowing him to negotiate the stairs of the Smiths' three-story house and bi-level attic, and to enter and exit cars. (TV: The Wedding of Sarah Jane Smith, The Gift) The Eleventh Doctor implied that Mark IV was not the first to have the ability to hover. (TV: The Power of Three)
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.