The main purpose of link building for SEO is to increase the authority and relevancy of a website by obtaining high-quality backlinks from other authoritative websites.