The royal army in Panama City was commanded by Colonel José de Fábrega, a Creole from Veraguas. This fact was taken advantage of by the Panamanians, who won over his complicity, as well as the patriotic societies and clergy, who contributed financially to the movement. On November 28, a Town Hall meeting was convened, where in solemn ceremony and in the presence of the military, civil and religious authorities, they declared that the bonds that had tied the Isthmus of Panama to Spain were broken. Among the leading figures were José Higinio Durán y Martell, Panama's bishop Dr. Carlos de Icaza, Mariano Arosemena, Juan de Herrera, Narciso de Urriola, José de Alba, Gregorio Gómez, Manuel María Ayala, Antonio Planas, Juan Pío Victorias, Antonio Bermejo, Gaspar Arosemena and Casimiro del Bal.
On November 30, 1821 the warships Trial and Revenge arrived at the Panama Bay to seek out the rest of the Spanish troops. The Spanish captains José de Villegas and Joaquín de Soroa signed a peace treaty with José de Fábrega (promoted to the rank of general and appointed civil and military leader of the isthmus by Simón Bolívar) on January 4, 1822, representing the Spanish monarchy and the local patriots. The Spaniards agreed to nonaggression on the territories of the isthmus and the withdrawal of all troops and ships of the Spanish Crown from the new isthmus nation.
The lack of a budget, limited military weapons and the insecurity of being a Spanish republic endangered the continued quest for independence of the isthmus. Thus, it was proposed to unite with some of the new American nations, among them the neighbors of the Central American Union and the nation of Peru, which had been the Isthmus' main trading partner during the colonial period.
However, in admiration of the leadership and vision of the freedom-seeker Simón Bolívar, and in consideration that the colonial isthmus had previously belonged to the Viceroyalty of New Granada, the Panamanian patriots voluntarily decided to join the Republic of Colombia.