When being imprisoned by the Sporraxx they tried to access K9's memory core. Memories that K9 had assumed to be erased were slowly coming back and the Sporraxx got to know more and more about K9's past. They reprogrammed K9 to protect a small spherical marauder bomb, that would destroy Earth. However K9 was able to break free of their control, because deep in his memories a sense of right and wrong prevailed. He took the bomb back into the Sporraxx space ship where it exploded. (COMIC: Short Circuit)
A third model, K9 Mark III was evidently constructed by the Fourth Doctor; indeed, the Eighth Doctor did not dispute the presumption that he had built this K9. (PROSE: Interference - Book Tqo) Mark III travelled with the Fourth Doctor and Adric for a time. (PROSE: Inter-Galactic Cat) Eventually, however, he was shipped in 1978 to Sarah Jane Smith at the home she had shared with her Aunt Lavinia in South Croydon during her companionship of the Third and Fourth Doctors. (TV: A Girl's Best Friend) Since parting ways with the Doctor (TV: The Hand of Fear) however, Sarah Jane had already gone away and was travelling extensively. The following year, Lavinia purchased a manor house and market garden in Moreton Harwood, Gloucester, and took the still crated K9 with her. On 18 December 1981, Sarah Jane and her foster brother Brendan Richards arrived at Lavinia's home for Christmas, but Lavinia had left early for her lecture series in the United States. Sarah Jane opened the crate and received her new companion. (TV: A Girl's Best Friend)
K9 Mark 2 had some obvious commonalities with the Mark I that had preceded him. However, as he had almost completely lost his personal memories, he was forced to reacquaint himself with the world around him. Toward this end, he downloaded thousands of human movies onto his memdrive, which peppered his speech with 20th and 21st century English colloquialisms that his "brothers" did not typically employ. (TV: Alien Avatar) Despite his negative opinions of emotions, (TV: Mutant Copper) he asked questions about some, such as fear (TV: Fear Itself) and love (TV: Aeolian). He even showed some, laughing when he saved the day, feeling fear (TV: Fear Itself) and being angry. (TV: Regeneration)
Introduced into the plot in The Invasion of Time, K9 Mark II first actually appear on-screen in The Ribos Operation (1978). More mobile than his predecessor, Mark II exhibited the ability to sense and warn others of danger. He travels as a companion alongside the Doctor and Romana. Around the time of Romana's regeneration (the transition from actress Mary Tamm to Lalla Ward), the K9 character was explained as suffering from "laryngitis" to accommodate Leeson's departure from the series at the start of the 1979–80 season; for this time, he was portrayed by David Brierley, until Leeson's return for the 1980–81 season. When the Doctor and Romana travel to the parallel universe of E-Space, K9 is severely damaged, in Warriors' Gate (1981). The damage was such that K9 could only function in E-Space; when Romana decided to stay and forge her own path, the Doctor gave K9 to her. The character makes subsequent appearances in remakes of the unfinished serial Shada, alongside the Eighth Doctor (Paul McGann); the 2003 Shada audio play and webcast depict K9 Mark II as having returned to Gallifrey with Romana, now Lady President of the Time Lords, where the Doctor visits them. It is not clear if either of these audio appearances are considered canonical in relation to the continuity of the TV series.