In 1821 a congress of Central American criollos declared their independence from Spain, effective on 15 September of that year. That date is still marked as the independence day by most Central American nations. The Spanish Captain General, Gabino Gaínza, sympathized with the rebels and it was decided that he should stay on as interim leader until a new government could be formed. Independence was short-lived, for the conservative leaders in Guatemala welcomed annexation by the Mexican Empire of Agustín de Iturbide on 5 January 1822. Central American liberals objected to this, but an army from Mexico under General Vicente Filisola occupied Guatemala City and quelled dissent. When Mexico became a republic the following year, it acknowledged Central America's right to determine its own destiny. On 1 July 1823, the congress of Central America declared absolute independence from Spain, Mexico, and any other foreign nation, and a Republican system of government was established.