Larry Page and Sergey Brin founded Google in 1998 after inventing the PageRank algorithm as PhD students at Stanford University. PageRank analyzed relationships between websites to determine relevance and provide better search results than just counting keyword appearances. They launched Google as a search engine and later expanded into many online products and services, making Google the most popular website globally.