Cohesion is the attraction between molecules of the same substance, while adhesion is the attraction between molecules of different substances.
Example: Water demonstrates cohesion when water droplets form on a smooth surface because the water molecules are attracted to each other. In contrast, water exhibits adhesion when it climbs up a narrow glass tube (capillary action) due to its attraction to the glass molecules.