A metaphor can be used to replace one idea with another. For example, a tsunami can be described as a "wave of destruction" for the damage that it causes. It implies a comparison. A simile establishes the comparison of ideas. An endless torrent of rain flooded the valley like a tsunami.