The Mauá Railway (), officially known as the Imperial Petropolis Steam Navigation and Railway Company (), was the first railway established in Brazil and the third in South America. History. The railway was built to connect the Mauá Port, at Guanabara Bay, and the base of the Estrela mountain, located at the region of the city of Petrópolis, state of Rio de Janeiro. The project's main objective was to ease the difficulties of transporting cargo and passengers between the coast of Rio de Janeiro and the state's interior, an important hub for coffee production - one of the main exports of Brazil at the time.