Search engines work by searching their databases for web pages, images, and other files that match the search terms provided by users. They use complex processes and methodologies to retrieve and rank results. The main search engines are Google, Bing, Yahoo, and Baidu, but there are over 30 search engines total that users can employ, with different search engines sometimes returning varying results.