At the end of the American Civil War, General Bernardo de Galvez was highly respected for his victorys. However, this worried the Spanish Crown, and so they ordered him to leave his army at New Orleans and sail to Mexico City for "further orders". Seeing through this bad excuse for him to be assassinated, he and his army, inspired by the Americans, marched west to "liberate Mexico from Spanish Shackles". He and his army got all the way to the Rio Grande until they were stopped by Bernardo's uncle, Jose de Galvez, who was sent from Spain to stop this upriseing. However, all of the troops in Jose's army, beside's the about 500 he had came with, were Mexican, and were very unwilling to fight their own brothers. The two army's negotiated for 3 days, and each night, some of Jose's men ran across the field to Bernardo's camp, and by the day of the fighting, Bernardo's army numbered around 46,000 to Jose's 31,000. At noon, the 2 army's moved into what would prove to be the only battle in the rebelion.
Bernardo's militia-backed veteran's cut a swathe through the Spanish left, and the extatic militiamen in the center pushed back again and again the Spanish charge. However, when the Regiment of Hibernia led the charge into the Spanish left, the Spanish militiamen threw down their arms, and many turned around and charged with the veterans! Eventually, after only 2 hours of fighting, those loyal to Crown fled across the river, while the Army of Mexico found its numbers bolstered. 12 days later, Bernardo arrived at Mexico City and declared the independance of Mexico. The terms agreed to were all Spanish territorys on mainland America and Jamaica would be ceceded to Mexico, and Spain would give 3 million gold coins to fund new roads and public buildings. On June 14th, 2 months after the Battle of Rio Grande, the Mexican Constitution is signed by Bernardo de Galvez and several other new government leaders. The first votes are held the next day, and on June 19th, 1785, Bernardo de Galvez is named the first Imperial President of the Imperial Republic of Mexico with Miguel Hidalgo y Costilla as Vice President.