Question: Why did San Diego lose its pueblo status in 1838?

Is "In 1821, Mexico won its independence from Spain, and San Diego became part of the Mexican territory of Alta California." the correct answer?
Options:
[1]. yes
[2]. no
[2].