San Diego County ( ), officially the County of San Diego (Spanish: Condado de San Diego), is a county in the southwestern corner of the U.S. state of California. As of the 2020 census, the population was 3,298,634, making it California's second-most populous county and the fifth-most populous in the United States. Its county seat is San Diego, the second-most populous city in California and the eighth-most populous city in the United States. It is the southwesternmost county in the 48 contiguous United States, and is a border county. It is also home to 18 Native American tribal reservations, the most of any county in the United States.
San Diego County comprises the San Diego-Chula Vista-Carlsbad, CA Metropolitan Statistical Area, which is the 17th most populous metropolitan statistical area and the 18th most populous primary statistical area of the United States as of July 1, 2012. San Diego County is also part of the San Diego–Tijuana transborder metropolitan area, the largest metropolitan area shared between the United States and Mexico.
San Diego County has more than 70 miles (113 km) of coastline. This forms the most densely populated region of the county, which has a mild Mediterranean to semiarid climate and extensive chaparral vegetation, similar to the rest of the western portion of Southern California. Precipitation and temperature extremes increase to the east, with mountains that receive frost and snow in the winter. These lushly forested mountains receive more rainfall than the average in Southern California, while the desert region of the county lies in a rain shadow to the east, which extends into the Desert Southwest region of North America.
There are 16 military installations, of the U.S. Navy, U.S. Marine Corps, and U.S. Coast Guard in San Diego County. These include Naval Base San Diego, Marine Corps Base Camp Pendleton, Naval Air Station North Island, Marine Corps Air Station Miramar, and Coast Guard Air Station San Diego.
From north to south, San Diego County extends from the southern borders of Orange and Riverside Counties to the Mexico-U.S. border and the Baja California municipalities of Tijuana and Tecate. From west to east, San Diego County stretches from the Pacific Ocean to its boundary with Imperial County, which separated from it in 1907. Since 2010, statewide droughts in California have further strained San Diego County's water security.