After debuting in the final scene of "School Reunion" (2006), K9 Mark IV returned in spin-off series The Sarah Jane Adventures' premiere episode "Invasion of the Bane", where due to licensing issues with creator Bob Baker it is explained that K9 is sealing a black hole and can only communicate briefly and infrequently with Sarah Jane. The character makes an heroic appearance in the first series finale The Lost Boy, to do battle with rogue alien supercomputer Mr Smith (Alexander Armstrong), demonstrating new CGI teleportation and hovering features. K9 Mark IV's interfaces include at least one USB port. Subsequently, the character appears briefly in the Doctor Who series four series finale "Journey's End" (2008), wherein K9 and Mr Smith assist the Doctor in returning Earth to its proper position. K9 next appears in the comedic Red Nose Day 2009 Sarah Jane mini-episode "From Raxacoricofallapatorius with Love". A deal with the creators of K9 having been struck, K9 Mark IV became a regular character in The Sarah Jane Adventures in third series story, The Mad Woman in the Attic (2009), until the series four premiere The Nightmare Man (2010), where he accompanies departing series regular, Sarah Jane's adoptive son Luke Smith (Tommy Knight), to university. He appears again in series four finale, Goodbye, Sarah Jane Smith. Though he doesn't appear in the serial, it is mentioned in The Man Who Never Was (2011) that Luke invented a special dog whistle to summon him with.
Although John Leeson has been the primary voice actor for K9 since his introduction, two other actors have voiced the character. David Brierley voiced K9 during Season 17 after Leeson chose not to return to the series (Leeson subsequently signed up again for Season 18), and Roy Skelton, better known for his work voicing Daleks, voiced the character in Destiny of the Daleks when all was required of K9 was a croaking sound due to the character contracting a form of robot laryngitis.
K9, occasionally written K-9, is the name of several fictional robotic canines (dogs, the name being a pun on the pronunciation of "canine") in the long-running British science fiction television series Doctor Who, first appearing in 1977. K9 has also been a central character in three of the series television spin-offs: the one-off K-9 and Company (1981), The Sarah Jane Adventures (2007–2011) and K-9 (2009–2010). Although not originally intended to be a recurring character in the series, K9 was kept in the show following his first appearance because he was expected to be popular with younger audiences. There have been at least four separate K9 units in the series, with the first two being companions of the Fourth Doctor. Voice actor John Leeson has provided the character's voice in most of his appearances, except during Season 17 of Doctor Who, in which David Brierley temporarily did so. The character was created by Bob Baker and Dave Martin, to whom rights to the character still belong; consequently, Baker's spin-off series K9, which is not BBC-produced, cannot directly reference events or characters from Doctor Who, though it attempts to be a part of that continuity.