San Marcos is a city in the North County section of San Diego County, California. As of 2009, the city had a total population of 83,149. Outside the San Diego region, it is best known as the home of California State University, San Marcos. The city is bordered by Escondido to the southeast, Encinitas to the Southwest, Carlsbad to the west, and Vista to the northwest.