 On 20 January 2014, Italian side Roma announced that Bastos had signed a loan contract until the end of the season for a fee of €1.1 million, with the option of buying the full rights at the beginning of the 2014–15 season, for €3.5 million.On 13 August 2014, Bastos returned to his homeland and signed a one-and-a-half-year deal with Brasileirão club São Paulo.On 28 December 2016, Bastos and São Paulo, under a mutual agreement, cancel the contract, that would run until December 2017.