The Kumeyaay people have lived around San Diego Bay, its canyons and the mountains to the east for thousands of years, and Kumeyaay bands still live in the county today.
In 1542 the explorer Juan Rodríguez Cabrillo, sailing for Spain, entered the bay — the first European to reach what is now the US West Coast. Spain settled here only in 1769, when a military presidio and Mission San Diego de Alcalá, the first of California's 21 Spanish missions, were founded on Presidio Hill under Junípero Serra. After Mexico won independence in 1821 the small adobe town of Old Town grew below the hill, and after the Mexican–American War San Diego became part of the United States in 1848.
In the 1860s the developer Alonzo Horton bought land by the waterfront and laid out "New Town", today's downtown and Gaslamp Quarter. The 1915 Panama-California Exposition left the Spanish Colonial Revival palaces of Balboa Park, and the San Diego Zoo grew from animals left from the fair. The US Navy and Marine Corps made San Diego one of their biggest bases in the 20th century, and the city is still a navy town as well as a centre of science, biotech and tourism.