Similes are sometimes confused with metaphors, but they have different functions:
A simile draws an explicit comparison between two things using the words “like,” “as,” or “than” (e.g., “your eyes are like the ocean”).
A metaphor draws an implicit comparison by saying something is something else (e.g. “your eyes are an ocean”).