allegory
A story where characters and events stand for deeper ideas.
An allegory is a story where the characters, events, and settings represent deeper ideas or lessons about life, morality, or society. On the surface, you're reading an adventure or fantasy, but underneath, the author is really talking about something else entirely.
Think of George Orwell's Animal Farm, where farm animals overthrow their human owner and try to run the farm themselves. It's entertaining to read about pigs and horses having meetings and making rules, but Orwell was actually writing about the Russian Revolution and how power can corrupt leaders. The pigs represent specific political figures, and the farm itself represents an entire country going through revolution.
Allegories differ from stories that simply have a moral or lesson. In Aesop's fable about the tortoise and the hare, the lesson is “slow and steady wins the race,” but the tortoise is just a tortoise. In an allegory, almost everything stands for something else in a systematic way. C.S. Lewis's The Chronicles of Narnia contains allegorical elements about Christianity, with Aslan representing Christ and his sacrifice representing Christ's crucifixion and resurrection.
Writers use allegories when they want to discuss controversial or complex topics indirectly, or when a story makes the ideas more memorable and powerful than a straightforward essay would.