Just hours after scoring in Brazil's 5-0 thrashing of Peru at the Copa America, Dani Alves announced he was leaving Paris Saint-Germain.
The 36-year-old right back, who is captain of Brazil, had been with the French champions for two seasons and was at the end of his contract.
"Everything has a start, middle and end, and the time has come to put a full stop here," Alves said on Instagram.
Alves did not reveal where he might go, and leaves PSG as compatriot Leonardo returns as the new sporting director.
His departure also comes at a time when rumours are circulating about the future of Neymar, the world's most expensive footballer who has had an injury-hit season laced with controversy.
Alves signed for PSG at the same time as Neymar, in the summer of 2017.