In 1612, the French were successfully expelled from Ceará and Maranhão by a military expedition under the command of Portuguese Martim Soares Moreno. In the same year he constructed the fortress of São Sebastião on the same site as São Tiago, and one year later he left Ceará for Portugal. It was only in 1618 that Martim Soares Moreno returned to Ceará, and it is from this time that the Portuguese presence dates. This was restricted at first to the area of the Ceará River: Martim Soares Moreno made an alliance with the Indians of the Potiguara tribe. In 1631, he left Ceará to help the Portuguese against the Dutch in Pernambuco and the fort of São Sebastião lost its importance.