The 17 years long rule of Rosas was influenced by permanent warfare, both from unitarians and by other countries. The Peru–Bolivian Confederation, allied with France, declared the War of the Confederation against Argentina and Chile; France supported it by imposing a naval blockade over Buenos Aires, which was maintained even after the Peru-Bolivian defeat. The French helped Fructuoso Rivera to oust the Uruguayan president Manuel Oribe from power, so that Rivera helped them against Rosas. France gave up the blockade, but Rosas still supported Oribe in the Uruguayan Civil War to reestablish his rule in Uruguay. The conflict against Rivera led to a renewed conflict with France, this time allied with Britain. The Anglo-French blockade of the Río de la Plata was defeated as well. Justo José de Urquiza, governor of Entre Ríos, thought by then that it was the time required by the Federal Pact to establish a Constitution, but Rosas still kept his idea of doing it after all provinces had already organized themselves. With the bulk of the army of the Confederation on his side, and some allies, Urquiza defeated both the army of Oribe laying siege to Montevideo and then Rosas himself, in the battle of Caseros.