When you search using an internet search engine like Google:
1. Search engine robots continuously crawl and index web pages from across the internet, storing the information in databases.
2. When you perform a search query, the search engine checks its database for relevant pages based on your search terms.
3. The search engine then returns and ranks results based on relevance, usually displaying URLs, snippets of text, or other information from matching web pages.