A dofollow link allows search engines to follow the link and pass on link equity to the target page, which can influence its ranking. A nofollow link, on the other hand, does not pass on link equity and is used to indicate that the link should not be followed or counted for ranking purposes.