The King of the Cats (or The King o' the Cats) is a folk tale from the British Isles. The earliest known example is found in Beware the Cat, written by William Baldwin in 1553, though it is related to the first-century story of "The Death of Pan". Other notable versions include one in a letter written by Thomas Lyttelton, 2nd Baron Lyttelton, first published in 1782, M. G. Lewis told the story to Percy Bysshe Shelley in 1816, and a version was adapted by Joseph Jacobs from several sources, including one collected by Charlotte S. Burne. Walter Scott reported that it was a well known nursery tale in the Scottish Highlands in the eighteenth century. It can be categorised as a "death of an elf (or cat)" tale: Aarne–Thompson–Uther type 113A, or Christiansen migratory legend type 6070B.
 A man travelling alone sees a cat (or hears a voice), who speaks to him, saying to tell someone (often an odd name, presumably unknown to the character) that someone else (normally a similarly odd name) has died, though other versions simply have the traveller see a group of cats holding a royal funeral. He reaches his destination and recounts what happened, when suddenly the housecat cries something like "Then I am the king of the cats!", rushes up the chimney or out of the door, and is never seen again.
 An early mention of Tybert/Tibert (the king of cats) can be found in William Caxton's 1481 print of the fable This is the table of the historye of reynart the foxe.
 In William Shakespeare's Romeo and Juliet, Tybalt is referred to by Mercutio as "Prince of Cats", and though this is more likely in reference to Tibert/Tybalt the "Prince of Cats" in Reynard the Fox, it demonstrates the existence of the phrase from at least the 16th century in England.
 Beware the Cat, written in 1553 and first published in 1561, known as the first horror fiction text longer than a short story and possibly the first novel (or novella) ever published in English, contains two traditional tales about cats, which appear in similar forms both before and after its publication; of which "The King of the Cats" is a notable example.
 A king or lord of the cats appears in at least two early Irish tales. Most notably, some versions of the Imtheacht na Tromdhaimhe (The Proceedings of the Great Bardic Institution) include a dispute between Senchán Torpéist the bard and king Guaire Aidne mac Colmáin of Connacht, which led to the bard first cursing all mice, killing a dozen of them in shame, followed by the cats who should have kept the mice in check; in retaliation, the king of the cats, Irusan son of Arusan hunts Senchán down intending to kill him, but is in turn killed by St Kieran. This tale was reworked by Lady Jane Wilde as "Seanchan the Bard and the King of the Cats", published in her 1866 book Ancient Legends of Ireland, and included in W. B. Yeats' 1892 book Irish Fairy Tales. The second was retold as "When the King of the Cats Came to King Connal's Dominion" in Padraic Colum's 1916 book The King of Ireland's Son.
 Cats are connected in many folklore traditions with the supernatural and supernatural beings such as elves and fairies.
 John Dunlop wrote a poem version of the story, inspired by the version found in Lord Lyttelton's letters, which was included in Poems on Several Occasions from 1793 to 1816 (1836).
 The story was mentioned in Henrietta Christian Wright's 1895 book Children's Stories in American Literature.
 On the death of Algernon Charles Swinburne in 1909, W. B. Yeats (then 38 years of age) was reported to have declared to his sister "I am king of the cats."
 Polish-French modern artist Balthus inscribed his 1935 self-portrait "A Portrait of H.M. The King of the Cats Painted by Himself."
 Stephen Vincent Benét's 1929 short story "The King of the Cats" based around this folk story was selected by The Library of America for inclusion in its two-century retrospective of American Fantastic Tales, edited by Peter Straub.  Straub's 1980 novel Shadowland references this tale as a central theme.
 Frances Jenkins Olcott's 1942 anthology Good Stories For Great Holidays included a version of Charlotte S. Burne's "The King of the Cats" adapted by Ernest Rhys.
 Barbara Sleigh's 1954 children's book Carbonel: The King of the Cats is inspired in part by this tale, as are its two sequels, The Kingdom of Carbonel and Carbonel and Callidor, which make up the Carbonel series.
 Paul Galdone published a children's picture book in 1980 titled King of the Cats.
 In John Crowley's 1987 novel The Solitudes, "The King of the Cats" is explicitly related to "the Death of Pan" as recorded by Plutarch and interpreted by Augustine of Hippo as a shift in World Ages.
 China Miéville takes the idea of a king of the cats from this story and Robert Irwin's "Father of Cats" from The Arabian Nightmare for his 1998 novel King Rat.
 American author P. T. Cooper's 2012 middle-grade children's novel, The King of the Cats, starts off with a retelling of the original legend but then picks up where the legend left off.  The novel tells of the death of Tom Tildrum and the crowning of his successor, Jack Tigerstripes, who is told by a feline oracle on his coronation day that he is destined to be captured by a human and to end his life in exile.  The resulting 217-page adventure is reminiscent of a Disney-style talking-animal story such as The Lion King.
 The title track of American rock band Ted Leo and the Pharmacists' 2003 EP Tell Balgeary, Balgury Is Dead was inspired by a County Cork version of "The King of the Cats", with the title referring to the cats' names in the story, and mention in the song of the story's setting, the graveyard at Inchigeelagh.
 Kim Newman's novella Vampire Romance (2012) has a group of vampire elders gathering after the downfall of Count Dracula to decide which one of them will become the next "King of the Cats"; the story explicitly refers to the Tom Tildrum folk tale.
 This legend is referenced in the manga/anime, The Ancient Magus' Bride (chapters 4–7/episodes 4–5): A cat, named Molly, is the current King of the Cats, and the first King is called "Tim"
 Also in other manga/anime, Aria the Natural by Kozue Amano, Cait Sith was featured as one of the characters. He was depicted as anthropomorphic fat black cat and rules over the Cats' Kingdom in Neo-Venezia, often involved mainly in more supranatural arcs.
 The story is referenced in the videogame Ni No Kuni where the kingdom of Ding Dong Dell is ruled by an anthropomorphic cat named King Tom Tildrum XIV. His counterpart in the human world is a housecat named Timmy Toldrum.