 It was the state capital from 1835 to 1845.It is the most important port city in the state and has one of the most important maritime ports in Brazil.The city is named after a nearby channel which indirectly connects the Lagoa dos Patos, to the northeast, and Lagoa Mirim, to the west, with the Atlantic Ocean.