 In the early 19th century, Napoleon's occupation of Spain led to the outbreak of revolts all across Spanish America.In New Spain, all of the fighting by those seeking independence was done in the center of that area from 1810 to 1821, what today is central Mexico.Once the Viceroy was defeated in the capital city –today Mexico City- in 1821, the news of the independence were sent to all the territories of New Spain including the indecencies of the former Captaincy of Guatemala.