A sitemap is an XML file that contains all of a website's URLs to help search engine crawlers discover and index every page. While some pages may be hidden from users, including them in a sitemap ensures search engines can still crawl them. Sitemaps allow webmasters to notify search engines of updates to the site structure without the engines having to recrawl the entire site to find new or changed pages.