Afterward, a series of civil wars ensued that lasted nearly two decades. Juan Lavalle attempted to take military action against Rosas, but was defeated at the Battle of Márquez Bridge in 1829. With support from other provinces, Justo José de Urquiza, "caudillo" of Entre Ríos Province, finally defeated Rosas at the Battle of Caseros on February 3, 1852. That May, the San Nicolás Agreement was signed by the provincial governors. The pact reinstated the treaty signed in 1831 by Argentina and the interior provinces and called for a constitutional convention.