Buenos Aires Governor Juan Manuel de Rosas exerted a growing hegemony over the rest of the country during his 1835-1852 Government and resisted several Unitarian uprisings, but was finally defeated in 1852 by a coalition Army gathered by Entre Ríos Federalist Governor Justo José de Urquiza, who accused Rosas of not complying with Federal Pact provisions for a National Constitution. In 1853, a Federal Constitution was enacted (the current Constitution of Argentina, through amendments) and Urquiza was elected President of the Argentine Confederation. However, on the aftermath of 1852 Battle of Caseros, the Province of Buenos Aires had seceded from the Confederation. In 1859, after the Battle of Cepeda the State of Buenos Aires rejoined the Confederation, although it was granted the right to make some amendments to its Constitution. Finally, after the 1861 Battle of Pavón, Buenos Aires took over the Confederation.