Overpowering Urquiza in the 1861 Battle of Pavón, Bartolomé Mitre secured Buenos Aires predominance and was elected as the first president of the reunified country. He was followed by Domingo Faustino Sarmiento and Nicolás Avellaneda; these three presidencies set up the bases of the modern Argentine State.