The Man Who Would Be King is a novella about two British adventurers in British India who become kings of Kafiristan, a remote part of Afghanistan. The story was inspired by the exploits of James Brooke, an Englishman who became the first White Rajah of Sarawak in Borneo; and by the travels of American adventurer Josiah Harlan, who was granted the title Prince of Ghor.