An allegory is a term for a figure of speech. It is a story or picture with a hidden meaning. The characters in allegories are symbols which represent particular ideas. The story has a figurative meaning, not just a literal one.
Allegory is an example of rhetoric, but an allegory does not have to be a story in language. It may be something to look at, such as a painting or sculpture.