Salvador was founded in 1549 and served as the capital of Portugal's Brazilian colony until 1763 when Rio de Janeiro became the capital. (Brasília replaced Rio de Janeiro as the capital of Brazil in 1960.) Salvador prospered as the colony's principal port and administrative center. During the colonial period, the city's economy depended on the cultivation and export of sugar and tobacco. These were grown on the fertile coastal plain adjacent to the city.