Which of the following is the best definition of an analogy?

Comparing synonyms and antonyms.
Showing a similarity between unlike things.
Organizing words by classification.
Identifying differences in words.

Showing a similarity between unlike things.