The Mad King is a Ruritanian romance by American writer Edgar Rice Burroughs, originally published in two parts as "The Mad King" and "Barney Custer of Beatrice" in All-Story Weekly, in 1914 and 1915, respectively. These were combined for the book edition, first published in hardcover by A. C. McClurg in 1926.