The novel had been inspired by the Battle of Leros during the Dodecanese Campaign of World War II, but in actuality the guns on Leros were , not the huge guns described in the book and visually depicted in the film. The screenplay, adapted by producer Carl Foreman, made significant changes from the novel; these included changing the gender of the local resistance fighters and inventing a conflict between Mallory and Andrea.