An analogy compares two things that are mostly different from each other but have some common similarities.