A search engine indexes webpages and allows users to search for topics of interest. A search engine uses a spider to create an index of the relevant words on different web pages. When a user performs a search, the search engine uses the index and a ranking algorithm to display the most relevant websites. Google uses PageRank to rank websites.