Sarmiento managed to defeat the last known caudillos and also dealt with the fallout of the Triple Alliance War, which included a decrease in national production due to the death of thousands of soldiers and an outbreak of diseases, such as cholera and yellow fever, brought by returning soldiers.