An XML sitemap is a file on your website that lists the pages you want search engines to know about, with the date each one last changed. It is written for machines, not visitors. Search engines read it to discover new pages quickly and to notice updates, instead of waiting to stumble on them by following links.
Listing a page in a sitemap does not make it rank or even guarantee it is indexed. It is a hint about what matters. Leaving out a page you care about is the mistake that costs you.
An XML document following the sitemaps.org protocol: <urlset> of <url> entries with <loc> and optional <lastmod>, up to 50,000 URLs or 50 MB per file, grouped by a sitemap index. Google ignores <priority> and <changefreq> but does use an accurate <lastmod>. Reference it in robots.txt and submit it in Search Console.
Include only canonical, indexable, 200-status URLs. Redirected, noindexed, 404 or non-canonical URLs in the sitemap send mixed signals and show up as errors or excluded pages. Most CMS SEO plugins generate one automatically; the work is making sure the right post types are included and the junk (tags, attachments, paginated archives) is not.
<url><loc>https://example.com/services/emergency-towing/</loc><lastmod>2026-10-31</lastmod></url> 