San Bernardino is a city in and the county seat of San Bernardino County, California, United States. Located in the Inland Empire region of Southern California, the city had a population of 222,101 in the 2020 census, making it the 18th-largest city in California. San Bernardino is the economic, cultural, and political hub of the San Bernardino Valley and the Inland Empire. The governments of El Salvador, Guatemala, and Mexico have established the metropolitan area's only consulates in the downtown area of the city. Additionally, San Bernardino serves as an anchor city to the 3rd largest metropolitan area in California and the 12th largest metropolitan area in the United States; the San Bernardino-Riverside MSA.