In 1821, San Diego became part of the newly-independent Mexico, which reformed as the First Mexican Republic two years later