An allegory is a literary device used to tell stories on two levels: the literal and the figurative. The literal level is the plot, characters and setting. The figurative level is what these elements represent.