A simile compares two things using like or as. A metaphor says one thing is another without like/as. Both are figurative, but similes mark the comparison more explicitly.
Classic homework search; good for internal links from creative writing.
More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog