Gomes scored his first goal for the team on 19 March 2017, closing a 4–2 home win against his former club Valencia. He was voted the worst signing of the season by readers of "Marca". In the final of the Copa del Rey, however, he replaced injured Javier Mascherano early into the first half of the match against Alavés, playing mostly as a right back and providing the assist for Neymar who netted the second in an eventual 3–1 triumph.