This is a good question. William Golding was born on September 19, 1911, in England. He followed in his father’s footsteps and became a teacher at a school called Salisbury. When World War II broke out, he joined the Royal Navy. Golding saw many naval battles. Eventually, he became a Lieutenant and commanded a rocket-launching craft. These two parts of his life came together in his book, The Lord of the Flies.
Golding, as a teacher at Salisbury, learned about the life of boys. More specifically, the school was attached to a church, so it had choristers. Golding could reflect as an adult observing children. Connected to this point, he also grew up in a private school, and later on he would say that he was a brat who even enjoyed hurting others. He had ready material.
As a soldier, Golding saw first-hand the tragedies of war. He experienced evil. He went on to say, “I have always understood the Nazis because I am of that sort by nature.” The war refined his thoughts more and helped him to write the novel.