Napoleon invaded Spain in 1807, starting the Peninsular War. King Charles IV of Spain abdicated in favor of his son Ferdinand VII, but Napoleon captured him and appointed his own brother, Joseph Bonaparte, as king of Spain instead, in a series of transfers of the Spanish crown known as the abdications of Bayonne. The Spanish people organized Government Juntas to resist against the French occupation, and within months the Junta Central of Seville claimed supreme authority over Spain and the colonies. This situation encouraged the Princess Charlotte of Spain to claim the regency of the Spanish American colonies.