Following the
formation of Juntas all over the country, profound divisions became evident when trying to determine what type of government should be placed instead of the Spanish crown. In particular, disagreements on whether there should be a
single state in the place of the old New Kingdom of Granada or whether the provinces should become
autonomous and independent states became a matter of heated debate. The provinces, led by the province of Cartagena, called for a federal solution that gave them equal rights, and were not willing to submit to authorities sent from the capital just like they had submitted to Spanish authorities in the past. In contrast, the province of Cundinamarca, which held the former viceroyal capital,
Santafé, was the richest and most populous province, and assumed that it would inherit the authority of the old regime, its leaders fearing the loss of power and privileges that would come with a federalist government. When the Cartagena junta called for a separate General Conference in
Medellín, where each province would be represented in proportion to their populations, the Supreme Junta of Santafé decided to counter by inviting each province to send a delegate to form an interim government while a general congress was summoned to establish a Constitutional Assembly for the whole New Granada. Nariño returned to Santafé just on time to participate in the organization of the Congress of the United Provinces of New Granada, being appointed secretary. The congress was irregular from the start, as it was formed by delegates from barely a handful of provinces (Santa Fe, Socorro, Neiva, Pamplona, Nóvita, and Mariquita), and was deeply divided on whether the cities of
Mompós (by then part of the Cartagena province) and
Sogamoso, which had sent delegates, should be considered provinces. In the congress, held between December 22, 1810, and February 2, 1811, Nariño was the leader of a push to establish the Congress permanently in Santafé, a proposal that was rejected by the provinces, which saw in this a push for deferral to Santafé, Following profound disagreements, the Congress was dissolved barely more than a month later, when the members stopped attending the sessions. As provinces were already busy establishing their own autonomous governments, under the lead of
Jorge Tadeo Lozano, the Junta Suprema in Santafé called for a constitutional assembly for the province. In March 1811, the province convened a "Constituent Electoral College of the State of Cundinamarca," which promulgated a constitution the following month declaring the creation of the
Free and Independent State of Cundinamarca, with Lozano as president. This constitution followed the model of the
Constitution of the United States, and established Cundinamarca as a Catholic and constitutional monarchy, under the absent
Ferdinand VII (it would only declare full independence from Spain in August 1813). While the constitution was mostly federalist, centralist ideas were evident in its writing, and it provided for the eventual annexation of other provinces which would then have to obey the provincial constitution. Nariño, who was recently widowed, was appointed as
mayor of the city of Santafé on August 30, 1811, and being a fervent centralist, started pushing for a strong centralist position from the newspaper he created,
La Bagatela (or The Trifle), which he started publishing on July 14, 1811. In
La Bagatela, Nariño became a ruthless critic of Lozano, whom he accused of indecisiveness. The aggressive criticisms by Nariño and his followers led to a riot in the city on September 19, 1811, following which president Lozano and his vice president were forced to resign. Fearful of popular rioting, the legislature elected Nariño as president and conceded to his demands, which increased the influence of the executive power. The "Congress of the United Provinces," meanwhile, had started meeting again. In spite of Cundinamarca's opposition, the Congress finally achieved an agreement and delivered the
Act of Federation of the United Provinces of New Granada on November 27, 1811, a heavily federalist act. The act provided a lot of autonomy to each province, and an extremely weak president who would be subordinate to the congress. This only made the differences between centralist and federalist ideas even stronger. Nariño and his followers became ardent opponents to federalism and to the congress and were convinced that the economic and political power of Cundinamarca would allow the province to dominate and unify New Granada. Nariño convened an assembly to revise the constitution of the state and make it even more centralist and then decided to annex the surrounding provinces of Tunja, Socorro, Pamplona, Mariquita, and Neiva, but was mostly unsuccessful on both enterprises. Nevertheless, the relentless hostility and harassment from Nariño's partisans pushed the members of the Congress to leave Santafé and to escape, first to
Leyva and finally to
Tunja. This would be the start of the period in the history of the recently founded country that would later be called "the
Foolish Fatherland." Soon, the Cundinamarca province became embroiled in
civil war against other provinces, particularly Tunja, where the Congress had settled. Nariño ordered General Antonio Baraya to defeat the federalist leaders in Tunja, but Baraya decided to switch sides and support the federalist forces, and many important leaders like
Santander and
Caldas joined him. Baraya, and the rebels with him, signed an act that declared Nariño a usurper and a tyrant, and pledged loyalty to the Congress. Nariño used the opportunity to request extraordinary powers from the legislature of Cundinamarca, which allowed him to be appointed as a
dictator. On November 26, 1812, Nariño left with his army to conquer Tunja. On December 2, 1812, his army faced a federalist army commanded by
Antonio Ricaurte and
Atanasio Girardot in the Battle of
Ventaquemada, and was soundly defeated, having to retreat back to Santafé. The federalist troops, however, only started pursuing them more than a week later. Following this defeat, and the subsequent declaration of independence from the province of Socorro, Nariño resigned as soon as he arrived in the city, but not finding a suitable replacement, he was reinstalled as dictator. Nariño then prepared to defend the city, which was put under siege by the Congress' army on December 24, 1812. Nevertheless, on January 9, 1813, in the Battle of San Victorino, Nariño's troops proved superior, and the federalist armies were completely defeated. In June 1813, he was appointed dictator for life, and the following month, the Republic of Cundinamarca finally declared independence from the Spanish Monarchy. ==Southern campaign==