The Paraguay River is a major river in south-central South America, running through Brazil and Paraguay and forming parts of the Paraguay-Argentina, Brazil-Bolivia, and Brazil-Paraguay borders. It flows about 2,621 kilometres (1,629 mi) from its headwaters in the Brazilian state of Mato Grosso to its confluence with the Paraná River north of Corrientes and Resistencia.