A canonical URL is the URL that website owners choose to have indexed by search engines and identified as the original page to avoid duplicate content penalties. To signal to search engines like Google and Bing which page you want to index, you set a canonical URL tag for that page.
When using duplicate pages or content, i.e. copies of the same page or article, you can use the canonical URL tag to indicate what the original is. By doing so, you can prevent multiple pages with the same information from negatively affecting each other’s ranking.
For example, you’ve written an article about “the 25 best BBQ recipes” and published that on your website. You also decide to publish that article on LinkedIn, Medium, SubStack, etc. To signify to search engines that the article on your main site is the original content piece that you want to index and rank for, you mark it as canonical.