Task: Text Categorization
Input (English): One party in this conflict was led for part of it by the namesake of a battleship famous in a later conflict, the Duke of Caxias. This clash was precipitated by the ouster of Atansio Aguirre. Victory at Curupayty forestalled defeat for the eventual losers, whose fate was practically sealed after the naval Battle of Riachuelo. This war's namesake treaty was the brainchild of Bartolom Mitre, who favored the Colorado Party over the Blanco Party in Uruguay. FTP, name this conflict in which Paraguay under Francisco Solano Lpez was eventually defeated by the namesake entity, consisting of Argentina, Brazil, and Uruguay.
Output (English): History