The Spanish king Ferdinand VII was captured and imprisoned during the Peninsular War, and the Junta of Seville took over government, claiming to govern on the absent king's behalf. There was concern about this in many Spanish overseas colonies, who thought that in the absence of the king they had the same right for self-determination as Seville. This caused the Chuquisaca Revolution and the La Paz revolution, which tried to create their own government Juntas. However, both revolutions were short-lived, and swiftly defeated by the Spanish authorities. The May Revolution, in Buenos Aires, was more successful, and ousted the viceroy Baltasar Hidalgo de Cisneros. The Primera Junta, which replaced him, prepared a military expedition to Upper Peru to secure the control of the area, while another expedition headed to Paraguay.