Bartra's first match after returning took place on 20 May 2017, and he played the entire 4–3 home win over SV Werder Bremen– he had also been an unused substitute in the previous fixture against FC Augsburg. One week later, he helped to the conquest of the DFB-Pokal after starting in the 2–1 defeat of Eintracht Frankfurt in Berlin.