 Álzaga refrained from accusing Rodríguez Peña for aiding in Beresford's escape, and Liniers kept the criollo military bodies armed.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.