Published in 1954, Lord of the Flies was Golding's first novel, and although it was not a great success at the time — selling fewer than three thousand copies in the United States during 1955 before going out of print — it soon went on to become a bestseller, and by the early 1960s was required reading in many schools and colleges. It was adapted to film in 1963 by Peter Brook, and again in 1990 by Harry Hook (see "Film adaptations").
The title is said to be a reference to the Hebrew name Beelzebub (בעל זבוב, Ba'al-zvuv, "god of the fly", "host of the fly" or literally "Lord of Flies"), a name sometimes used as a synonym for Satan.
At an allegorical level, the main theme is the conflicting impulses towards civilization (live by rules, peacefully and in harmony), and towards the will to power. Other themes include the tension between groupthink and individuality, between rational and emotional reactions, and between morality and immorality. How these play out, and how different people feel the influences of these, forms a major subtext of the story.
For a time the boys work together towards building shelters, gathering food and water, and keeping the fire going. The one goal which constantly gets sidelined is keeping the signal fire going as some of the boys, the hunters, led by Jack, focus their energy on hunting the wild pigs on the island. The children's belief in a beast on the island also creates a problem. The children begin to split into two groups, based on the existence of the beast. Ralph attempts to disprove the existence of the beast while Jack exploits the belief in the beast to encourage his group of hunters.
Jack soon forms a separate tribe from Ralph's. Jack gains defectors from Ralph's tribe by promising them meat, fun, and, most importantly, protection from the beast. Jack's tribe gradually becomes more savage and they use face paint and focus mainly on hunting, while Ralph's group focuses on keeping the fire going and getting rescued. Simon, a part of Ralph's tribe, sets off on a mission to investigate the mountain. While on his way there, he find the pig's head on a stick Jack put there earlier, and begins to hallucinate. He sees the head as "The Lord of the Flies," and believes that it is talking to him, telling him the truth, that they created the beast, and that the real beast was inside him, inside them all. He also finds the dead parachuter which had been mistaken for the beast. On his return, he arrives at the peak of a tribal ritual at Jack's tribe, and his explanation goes unheard as he is killed. Jack's tribe then raid Ralph's camp, attacking the non-hunters in order to steal Piggy's glasses in order to make a cooking fire.
By this time Ralph's tribe consists of just himself, Piggy, and twins Sam and Eric. They all go to the rock fort of Jack's tribe to try to get back Piggy's glasses so he can see. In the ensuing confrontation Piggy is struck by a boulder thrown by Roger knocking him off the cliff; he falls to his death. The conch is shattered into millions of pieces by the launched rock. Eric and Sam are captured and both become part of Jack's tribe, leaving Ralph by himself.
In the final sequence of the book, Jack and his friend Roger lead the tribe of 'hunters' on a hunt for Ralph, intending to kill him. In order to do this Jack sets the entire island on fire. The fire is so large that it attracts the attention of a nearby warship which comes to the island and rescues the boys. A navy officer lands on the island and his sudden appearance brings the children's fighting to an abrupt halt. When learning of the boys' activities, the officer remarks that he would have expected better from British boys. In the final scene of the book, Ralph cries, in mourning for his friend Piggy, his own loss of innocence, and his newfound awareness of the darkness of human nature.
A hint of the author's intention can be found in the final description of the officer as he remains unaware of the importance of the events that have transpired, watching his peacefully floating ship (representing civilization) that is still described as far away.
Golding read 'The Coral Island' as he was growing up, and thought of Ballantyne as racist, since the book teaches that evil is associated with black skin and is external. In Chapter 11 of the original Lord of the Flies, Piggy calls Jack's tribe "a pack of painted niggers. This was changed to "savages" in some editions and "Indians" in the mass media publication.
Stephen King has stated that the Castle Rock in Lord of the Flies was the inspiration for the town of the same name that has appeared in a number of his novels. The book itself also appears prominently in his novels Hearts in Atlantis and Cujo. King's fictional town in turn inspired the name of Rob Reiner's production company, Castle Rock Entertainment.
The DC Comics series Salvation Run is an adaptation of the "Lord of the Flies" concept with all the major DC Supervillains being marooned on an Alien planet
The young adult novel Gone, by Michael Grant, is closely related, with all of the adults and teens above 14 disappearing, leaving the rest to fend for and attempt to govern themselves.
Also the "Das Bus" episode of The Simpsons is based on this book.
The "Club SpongeBob" episode of SpongeBob SquarePants, in which he, Patrick, and Squidward are stranded in the woods and rely on the "magic conch" for guidance.
The ABC television show Lost has also shown loose similarities to the book.
The South Park episode The Wacky Molestation Adventure parodies Lord of the Flies, in which Eric Cartman represents Ralph, while Stan Marsh and Kyle Broflovski both represent Jack. In a twist of irony, the civilised tribe in the episode (Cartman's tribe) is more evil than the savage tribe. Kenny McCormick may have represented Simon, since he was killed because he was seen dead by the two adults.