K9, retroactively "K9 Mark I" (Leeson), initially appeared in The Invisible Enemy (1977) as the creation of Professor Marius (Frederick Jaeger) in the year 5000. K9 subsequently travelled with the Fourth Doctor (Tom Baker) and Leela (Louise Jameson) as a companion of the Doctor in his adventures in time and space until The Invasion of Time (1978). In this serial, K9 decides to remain on the Doctor's home planet of Gallifrey with Leela. Immediately afterwards, Doctor Who would introduce a second incarnation of K9, played by the same prop; the last scene of The Invasion of Time shows the Doctor unpacking a box labeled "K9 Mk II".
K9 was not originally intended to be a companion, but producer Graham Williams liked the concept so much that the decision was made to retain him as a regular character, in order to appeal to the younger members of the audience. The original name for the character was "FIDO" — apparently from "Phenomenal [sic] Indication Data Observation" unit — but it was eventually named K9.
This K9 exhibited the ability to sense and warn others of danger. He was also more mobile than his predecessor, despite his problems with the swamps of Delta III, able to lift himself up on small support rods so that he could climb stairs (PROSE: The Shadow of Weng-Chiang, TV: The Power of Kroll, The Armageddon Factor) The Doctor often used a glib remark to disarm those who were surprised by K9's appearance, such as "They're all the rage in Trenton, New Jersey." (TV: The Stones of Blood)
After this he was tricked by Thorne to give him his regeneration unit for a lost memory chip. This turned him into a bomb to make him self-destruct on encountering Jixey. Starkey helped him disarm himself. (TV: Hound of the Korven) K9 Mark 2's brief life was almost cut tragically short when after the fall of the Korven invasion force, Thorne sent the Trojan to kill K9, who defeated it by burning out his power core and exhausting all his energy. As his regeneration unit was in the Trojan, K9 seemingly died at the mansion after his companions bade him farewell. However his regeneration unit homed in at the last minute and resurrected him, giving the frisky pup a new lease on life. The regeneration unit restored his old dog collar so he could celebrate the joyful occasion to the full as he flew off to more adventures, bristling with life. (TV: The Eclipse of the Korven)
While caught up in a Time war between the past and the future on the planet Aoris, K9 was forced to spend a thousand years hidden on the planet, setting himself up as 'the great Machina' so that he could found a cult that would aid the Doctor and Romana in bringing the war to an end, hiding behind a fake computer with a version of the TARDIS until he could return to the Doctor and Romana once the war ended (AUDIO: The Paradox Planet, Legacy of Death).
K9 Mark I's mechanisms included rotating ear-probes, telescopic "eye" probe, an extendable nose concealing a powerful laser weapon, flashing lights on the top and the "eye" panel, waggling tail antennae, and ticker-tape tongue. His head could move up and down. His shell was painted in metallic gold/grey. There was a monitor screen on his left flank, though K9 rarely used this during his travels with the Doctor. Around K9's neck was a tartan collar, (being the Family Tartan of the Clan Buchanonn) from which hung a silver disk. (TV: The Invisible Enemy) He was later modified to fly through the vacuum of space. (TV: Curse of Anubis)
Our philosophy at K-9 University is simple…. Every dog can benefit from training and every dog deserves training. Proper dog training can give you the control you need to enjoy your relationship with your companion to the fullest. People tend to be fonder of dogs that are ruly and obedient, no matter how charming they are when they are playful. Providing individual one-on-one attention, we become acquainted with your dogs’ specific needs for optimal conditioning and instruction.
In 1985, a series of gamebooks featuring the Sixth Doctor were published by Severn House under the title Make your own adventure with Doctor Who in Britain and Find Your Fate — Doctor Who in the United States. These books were actually written by scriptwriters for the television series. Martin wrote Search for the Doctor which takes place in the mid-21st century and features K9 Mark IV being reunited with the Sixth Doctor long after Sarah's death.