Complex sentence: Wars became less frequent in the 20th century, with Bolivia-Paraguay and Peru-Ecuador fighting the last inter-state wars.
Split into simpler sentences: Wars became less frequent in the 20th century. With Bolivia-Paraguay and Peru-Ecuador fighting the last inter-state wars.