Dida started his fourth Confederations Cup in 2003, where Brazil suffered its worst-ever finish with elimination in the group stage. He returned for his fifth and last Confederations Cup start in 2005, and in Brazil's 1–0 group stage loss to Mexico, he saved a penalty from Jared Borgetti that had to be retaken twice due to repeated player encroachment into the penalty area, after Borgetti scored on the first attempt but hit the crossbar on the second. Dida was rested by coach Carlos Alberto Parreira for a 2–2 draw with Japan on 22 June as Marcos earned his final cap for Brazil. In a 3–2 semi-final victory over hosts Germany, he faced his second penalty of the competition, which Michael Ballack converted despite Dida guessing the right direction. He became the first two-time Confederations Cup winner after the "Seleção's" decisive 4–1 victory over Argentina in the final, earning him the last trophy of his international career.