What is a sitemap in SEO

A sitemap is an XML file that lists all of the web pages on a website. It is used by search engines to index a website and to understand its structure. The sitemap helps search engines to crawl a website more efficiently and to understand its content better.