A metaphor brings distinct things together to highlight a relationship or quality. Its literal and figurative meanings interact in the context of the passage.
An extended metaphor develops the comparison across multiple details or sentences rather than relying on a single phrase.