San Diego is located in the southernmost part of California, right on the border with Mexico. Sacramento is the capital of California and is located in the northern part of the state, while San Francisco is located in the northern part of the state on the coast.