Definition:

An allegory suggests a hidden meaning via the use of metaphoric examples. An allegory is a device where the meaning of a greater, often abstract moral or political concept is conveyed with the aid of more material objects or ideas being used as an example.

Example:

Faith is like a stony uphill climb: a single stumble might send you sprawling but belief and steadfastness will see you to the very top.