Similes and metaphors are both used to make comparisons or elucidate concepts.
Metaphors simply state a comparison. Similes use the words “like” or “as” to compare things. Because they both make comparisons, all similes are metaphors, but not all metaphors are similes.