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 URLs may be hidden from users, including them in a sitemap ensures search engines can still crawl those pages. Creating a sitemap allows websites to guide crawlers to crawl every page so that none are missed from being indexed.