Tarzan and the Foreign Legion is a novel by American writer Edgar Rice Burroughs, the twenty-second in his series of twenty-four books about the title character Tarzan. The book, written June–September 1944 while Burroughs was living in Honolulu and published in 1947, was the last new work by Burroughs to be published during his life ("Llana of Gathol", the tenth book in the Barsoom series, was published in 1948, but it was a collection of four stories originally published in "Amazing Stories" in 1941). The novel is set during World War II in Sumatra, Dutch East Indies. The term "foreign legion" does not refer to the French Foreign Legion, but is the name given in the book to a small international force (including Tarzan) fighting the Empire of Japan.