At the beginning of the 19th century, due to the influence of American independence and the French bourgeois revolution, the revolutionary movement of the Ecuadorian people as a Spanish colony became increasingly fierce. On August 9, 1808, under the leadership of Canizarias, the people of Quito, supported by the local garrison soldiers, set off an uprising to overthrow the Spanish colonial rule. Unfortunately, the uprising was brutally suppressed by the Spanish colonists. The people of Quito held three uprisings in 1810, 1812 and 1820. Although they were all suppressed, they all persevered.
In 1821, Bolivar sent General Sucre to lead Colombian and Venetian troops to support the Ecuadorian revolution. On May 22, 1822, Sucre's army, in cooperation with the Ecuadorian uprising army, completely defeated the Spanish colonial army in the high mountain battle in the Pichincha area. Two days later, the Spanish ruler in Quito surrendered, and Spain's 300-year colonial rule over Ecuador ended. The Ecuadorian people were finally liberated. On May 29, 1822, Ecuador joined the "Greater Colombian Republic" established by Bolivar under the name "Quito Region", including Colombia and Venezuela.
On May 12, 1830, under the leadership of Flores, the "Quito Region" separated from the "Greater Colombian Republic" and announced the establishment of the Republic of Ecuador in Riobene. On August 14, 1830, the first constitution was promulgated, and Flores was elected as the first president.