No, William Goldingās 1954 novel Lord of the Flies, about a group of English schoolboys who descend into savagery after becoming isolated on a remote island with no adults, is not based on a true story. It is a satire of R.M. Ballantyneās The Coral Island: A Tale of the Pacific Ocean (1858), which depicts boys overcoming adversity through inherent goodness and civilized behavior.
Golding wrote the novel while working as a teacher at a grammar school in Salisbury, England. His observations of his studentsā interactions informed the bookās themes. He was also influenced by his experiences in World War II, which included commanding a rocket-launching craft during the invasion of France and the D-Day landings in 1944. This period in Goldingās life helped shape the bookās perspective on humanityās inherent capacity for evil.