sentences:  Until the end of the seventeenth century, disputes between the Spaniards and the Portuguese overlapped in the territory, only consolidating under the military occupation of Portugal in 1790.As a municipality, Tefé came to possess an area of 500,000 km².From the middle of the 19th century onwards, dismemberment of its territory began, giving rise to the new municipalities of São Paulo de Olivença , Coari , Fonte Boa, São Felipe (now Eirunepé), Xibauá (now Carauari) Japurá and Maraã.