While Argentina was ruled by Juan Manuel Rosas (1829–1852), a common enemy of both Brazil and Paraguay, Brazil contributed to the improvement of the fortifications and development of the Paraguayan army, sending officials and technical help to Asunción.