The transfer of the Portuguese Court to Brazil generated military concern. It was feared that the British would launch a third attack, this time allied with Portugal. However, no military conflict took place, as when the Peninsular War started Britain and Portugal became allies of Spain against France. When the Spanish king Ferdinand VII was captured, his sister Carlota Joaquina sought to rule in the Americas as regent, but nothing came out of it because of the lack of support from both the Spanish Americans and the British. Javier de Elío created a Junta in Montevideo and Martín de Álzaga sought to make a similar move by organizing a mutiny in Buenos Aires, but the local military forces intervened and thwarted it. Spain appointed a new viceroy, Baltasar Hidalgo de Cisneros, and Liniers handed the government to him without resistance, despite the proposals of the military to reject him.