Pelotas is a Brazilian city and municipality (município), the fourth most populous in the southern state of Rio Grande do Sul, after Porto Alegre, Caxias do Sul and Canoas. It is located 270 km (168 mi) from Porto Alegre, the state's capital city, and 130 km (80.8 mi) from the Uruguayan border. The Lagoa dos Patos lies to the east and the São Gonçalo Channel lies to the south, separating Pelotas from the city of Rio Grande.