 Mining especially was hard hit.It had been the motor of the colonial economy, but there was considerable fighting during the war of independence in Zacatecas and Guanajuato, the two most important silver mining sites.In spite of Viceroy O'Donojú's having signed the Treaty of Córdoba giving Mexico its independence, the Spanish government did not recognize it as legitimate and claimed sovereignty over Mexico.