San Diego is the second-largest city in California, known for its harbor, beaches and military presence.