structural:expansion, quality:corruption
Collapse of the Bourbon dynasty

The Peninsular War was the trigger for conflicts in Spanish America in the absence of a legitimate monarch. The Peninsular War began an extended period of instability in the worldwide Spanish monarchy that lasted until 1823. Napoleon forced the Bourbon monarchs to abdicate, which precipitated a political crisis in Spain and Spanish America. Although the Spanish world almost uniformly rejected Napoleon's plan to place his brother, Joseph, on the throne, there was no clear solution to the lack of a king. Following traditional Spanish political theories on the contractual nature of the monarchy (see Philosophy of Law of Francisco Suárez), the peninsular provinces responded to the crisis by establishing juntas. The move, however, led to more confusion, since there was no central authority and most juntas did not recognize the claim of some juntas to represent the monarchy as a whole. The Junta of Seville, in particular, claimed authority over the overseas empire, because of the province's historic role as the exclusive entrepôt of the empire.

This impasse was resolved through negotiations between the several juntas in Spain counted with the participation of the Council of Castile, which led to the creation of a main government: the " Supreme Central and Governmental Junta of Spain and the Indies " on 25 September 1808. It was agreed that the kingdoms of the peninsula would send two representatives to this Supreme Central Junta, and that the overseas kingdoms would send one representative each. These kingdoms were defined as "the viceroyalties of New Spain (Mexico), Peru, New Granada, and Buenos Aires, and the independent captaincies general of the island of Cuba, Puerto Rico, Guatemala, Chile, Province of Venezuela, and the Philippines." This plan was criticized for providing unequal representation to Spanish America; nevertheless, throughout the end of 1808 and early 1809, the regional capitals elected candidates, whose names were forwarded to the capitals of the viceroyalties or captaincies general. Several important and large cities were left without direct representation in the Supreme Junta. In particular Quito and Chuquisaca, which saw themselves as the capitals of kingdoms, resented being subsumed in the larger Viceroyalty of Peru and Viceroyalty of the Río de la Plata respectively. This unrest led to the establishment of juntas in these cities in 1809, which were eventually quashed by the authorities within the year. An unsuccessful attempt at establishing a junta in New Spain was also stopped.