Allegory

A type of writing in which the settings, characters, and events stand for other specific people, events, or ideas. As a literary device, an allegory is a metaphor in which a character, place or event is used to deliver a broader message about real-world issues [...]