narrative, whether in prose or verse, in which a character, place or event is used to deliver a broader message about real-world issues and occurrences
As a literary device, an allegory is a narrative in which a character, place, or event is used to deliver a broader message about real-world issues and occurrences. Authors have used allegory throughout history in all forms of art to illustrate or convey complex ideas and concepts in ways that are comprehensible or striking to its viewers, readers, or listeners.
Writers and speakers typically use allegories to convey (semi-)hidden or complex meanings through symbolic figures, actions, imagery, or events, which together create the moral, spiritual, or political meaning the author wishes to convey. Many allegories use personification of abstract concepts.
Read more or edit on Wikipedia