In J. R. R. Tolkien's fantasy universe of Middle-earth, the King under the Mountain is the title of the Dwarf ruler who resides at the Lonely Mountain.
In The Hobbit, the dragon Smaug held this title. Thorin was in line to be the King under the Mountain.