The Man Who Would Be King tells the story of two British adventurers in British India who become kings of Kafiristan, a remote part of Afghanistan. It was inspired by the exploits of James Brooke, an Englishman who became the white Raja of Sarawak in Borneo, and by the travels of American adventurer Josiah Harlan, who claimed the title Prince of Ghor.