A search engine is a web-based tool or software program that allows users to search for information and retrieve relevant web pages, documents, images, or other resources based on keywords or phrases entered by the user. It uses algorithms to sort and rank the results based on relevancy and popularity.