Pelotas (peˈlɔtɐs) 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. In the 19th century, Pelotas was Brazil's leading center for the production of dried meat (charque), a staple food made by slaves and destined to feed the slaves of sugarcane, coffee and cocoa plantations across the country. Currently Pelotas hosts two major universities, the Federal University of Pelotas, and the Catholic University of Pelotas. Together, they account for a population of 22 thousand higher education students. The city has three football clubs: Esporte Clube Pelotas (founded 1908), Grêmio Esportivo Brasil (also known as Brasil de Pelotas; founded 1911) and Grêmio Atlético Farroupilha (founded 1926). The history of the city begins in June 1758, through a donation that Gomes Freire de Andrade, Count of Bobadela, made to Colonel Thomáz Luiz Osório, giving him land that lay on the banks of the Lagoa dos Patos. In 1763, fleeing the Spanish invasion, many inhabitants of the village Rio Grande sought refuge in the land belonging to Osório. Later, there also came refugees from Colônia do Sacramento, which had been handed over by the Portuguese to the Spanish in 1777. In 1780, the Portuguese rancher José Pinto Martins established himself in Pelotas,with the prosperity of his establishment stimulating the creation of other ranches and growth in the region, creating a population that would define the early city. The Civil Parish of São Francisco de Paula, founded on 7 June 1812, by Father Pedro Pereira de Mesquita, was elevated to the category of town on 7 April 1832. Three years later, in 1835, the town was declared a city, bearing the name Pelotas.