San Jose became part of the First Mexican Empire in 1821, after Mexico's War of Independence was won against the Spanish Crown, and in 1824, part of the First Mexican Republic. With its newfound independence, and the triumph of the republican movement, Mexico set out to diminish the Catholic Church's power within Alta California by secularizing the California missions in 1833.