Google was invented in 1998 by Larry Page and Sergey Brin while they were PhD students at Stanford University. They developed a search engine that prioritized page ranking based on relevance, which revolutionized how users accessed information on the internet. Google quickly grew in popularity and became a leading tech giant.