 Complete the following phrase:  The Spanish king Ferdid VII was captured during the Peninsular War, and replaced by the French Joseph Bonaparte. He was not recognized as a legitimate king, which left the Spanish monarchy without a ruler. This generated political reactions all across the Spanish Empire. Despite being of French ancestry, Liniers rejected Josephs rule and confirmed his allegiance to the captive king, but Javier de Elío did not trust him, and created a government Junta in Montevideo. Martín de Álzaga, Elíos ally in Buenos Aires, attempted to do the same by organizing a mutiny, but failed. Elío gave up his junta when Liniers was replaced by a new viceroy, Baltasar Hidalgo de Cisneros. However, as the Spanish situation in the Peninsular War worsened, Buenos Aires deposed Cisneros during the 