By the end of his presidency, the Red Line extended . In 1869, he conducted Argentina's first national census. Though Sarmiento is well known historically, he was not a popular president. Indeed, Rock judges that "by and large his administration was a disappointment". During his presidency, Argentina conducted an unpopular war against Paraguay; at the same time, people were displeased with him for not fighting for the Straits of Magellan from Chile. Although he increased productivity, he increased expenditures, which also negatively affected his popularity. In addition, the arrival of a large influx of European immigrants was blamed for the outbreak of Yellow Fever in Buenos Aires and the risk of civil war. Moreover, Sarmiento's presidency was further marked by ongoing rivalry between Buenos Aires and the provinces. In the war against Paraguay, Sarmiento's adopted son was killed. Sarmiento suffered from immense grief and was thought to never have been the same again. On August 22, 1873, Sarmiento was the target of an unsuccessful assassination attempt, when two Italian anarchist brothers shot at his coach. They had been hired by federal caudillo Ricardo López Jordán. A year later in 1874, he completed his term as President and stepped down, handing his presidency over to Nicolás Avellaneda, his former Minister of Education. In 1875, following his term as President, Sarmiento became the General Director of Schools for the Province of Buenos Aires. That same year, he became the Senator for San Juan, a post that he held until 1879, when he became Interior Minister. But he soon resigned, following conflict with the Governor of Buenos Aires, Carlos Tejedor. He then assumed the post of Superintendent General of Schools for the National Education Ministry under President Roca and published "El Monitor de la Educación Común", which is a fundamental reference for Argentine education. In 1882, Sarmiento was successful in passing the sanction of Free Education allowing schools to be free, mandatory, and separate from that of religion. In May 1888, Sarmiento left Argentina for Paraguay. He was accompanied by his daughter, Ana, and his companion Aurelia Vélez. He died in Asunción on September 11, 1888, from a heart attack, and was buried in Buenos Aires. His tomb at La Recoleta Cemetery lies under a sculpture, a condor upon a pylon, designed by himself and executed by Victor de Pol. Pedro II, the Emperor of Brazil and a great admirer of Sarmiento, sent to his funeral procession a green and gold crown of flowers with a message written in Spanish remembering the highlights of his life: "Civilization and Barbarism, Tonelero, Monte Caseros, Petrópolis, Public Education.