SEO basics

How does SEO work?

Short answer

Search engines crawl the web, store pages in an index, and rank them for each search based on relevance and quality. SEO improves each step: making pages easy to crawl, clear about what they cover, and trusted enough to rank above competitors.

The three steps every search engine follows

Every search engine, Google included, does three things: it discovers pages, it stores and understands them, and it decides which ones to show for each search. SEO is about making each of those steps go well for your site.

1. Crawling

Search engines run programs called crawlers (Google's is Googlebot) that move across the web by following links.

When a crawler finds a page, it downloads it, reads the links on it, and adds those links to its list of pages to visit. It also checks XML sitemaps, which are lists of URLs you hand to search engines directly.

Crawlers can't visit everything all the time, so they prioritize. Pages that are linked often, updated often and load quickly tend to be crawled more.

Pages buried deep in the site, blocked by robots.txt or reachable only through a search box may never be found at all. On large sites this becomes a real constraint, which I cover in the post on crawl budget for SaaS sites.

2. Indexing

After crawling, the search engine processes the page: it renders it (running JavaScript if needed), reads the text, works out the main topic, notes structured data, and decides whether the page is worth storing in its index.

Not every crawled page makes it in. Google skips pages it sees as duplicates, very thin, or low quality.

When several URLs show the same content, Google picks one as the main version. You can tell it which one you prefer with a canonical tag. You can check which of your pages are indexed, and why others aren't, in Google Search Console.

3. Ranking

When someone searches, the engine pulls every indexed page that could be relevant and orders them. Google uses hundreds of signals, but they cluster around a few questions:

  • Relevance: does the page match the meaning behind the search, not just the words? This is where search intent matters.
  • Quality: is the content original, accurate and genuinely useful? Google's idea of E-E-A-T describes what it looks for.
  • Authority: do other trusted sites link to it? Backlinks remain a strong signal.
  • Page experience: does it load quickly and work well on a phone? See Core Web Vitals.
  • Context: the searcher's location, language and device can change the results.

The order is then shaped into a results page that may include ads, AI Overviews, maps, videos and "People also ask" boxes alongside the classic links.

How SEO improves each step

Once you see the three steps, the different parts of SEO make more sense.

Helping crawling and indexing

This is the job of technical SEO. It means a clean site structure, internal links to every important page, an accurate sitemap, no accidental blocks, fast servers, and pages that render properly without depending on heavy JavaScript.

It also means fixing broken links and using 301 redirects when URLs change, so you don't lose the value pages have built up.

Helping relevance

This is content and on-page work. You research what people actually search for, then build pages whose titles, headings and copy answer that clearly. One page per main topic usually works better than several overlapping pages. A content strategy ties these pages together with internal links so search engines understand how your topics relate.

Helping authority

This is off-page SEO: earning links and mentions from sites your audience already trusts. You can't fully control it, but you can make it much more likely by publishing things worth citing.

What SEO can't do

SEO doesn't let you pay for rankings, and no one can guarantee a position. Google changes its systems constantly, and competitors are working on the same searches. What SEO does is stack the odds in your favor so that, over time, you rank for more of the searches that matter to your business.

It also takes time. A brand-new page on a site with little authority can take months to settle. Fixes to existing pages usually show up faster. There's a realistic timeline in how long SEO takes.

Where AI search fits in

AI assistants and Google's AI Overviews follow a similar pattern: they retrieve pages from an index, then write an answer based on them and sometimes cite the sources.

Pages that are easy to crawl, clearly structured and widely referenced are more likely to be used. That's why AI search visibility starts with the same foundations, plus some habits specific to answer engines.

Where to start

If you're not sure how your site is doing on these three steps, start with an SEO audit. It will show which pages are indexed, what's blocking the rest, and which pages are closest to ranking. That's usually the fastest way to turn "how does SEO work" into "what should we fix first".

Answered by Federico Martinez, SEO & AI Search Strategist · 4 min read. See all SEO questions

Want this sorted for your site?

Tell me what you're working on and I'll suggest a plan.

Federico Martinez

Related questions