When URLs of two or more pages are similar, search engines get confused about which one should be displayed for a particular keyword. This may result in duplicate content issues and affect the website’s SEO. Canonical URLs save websites from this problem by telling the search engines which page to index.