The answer is allegory. This literary device technically serves as an "extended metaphor", which artfully expresses events in history. It can illustrate very complex ideas and concepts which are understandable to a targeted audience. Over the years, it has evolved in forms of classical, medieval, and modern.