By Morgan J. Burris Lexington Middle School. Mexico won its independence from Spain in 1821. The Northern section was very isolated from the capital.