Independence of Panama from Spain was accomplished through a bloodless revolt between 10 November 1821 and 28 November 1821. Seizing the opportunity, when the Spanish governor left Panama to march on rebellious Ecuadorians, José de Fábrega led a push for independence. Rebels in the small town of Villa de Los Santos made the first declaration for independence and the movement quickly spread to the capital.