Paris - 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.
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.
The Juazeiro-born player, capped 111 times internationally, previously played club football for Bahia in Brazil, Sevilla and Barcelona in Spain and Juventus.
Alves' two seasons with PSG saw him part of a team that won back-to-back Ligue 1 titles as well as League Cup and French Cup trophies in his first year.
He also won the 2017 Serie A title with Juve, after having claimed six La Liga, four Copa del Rey and three Champions League winners' medals with Barca.
Further success on the European stage eluded him at PSG, however, with the Parisians crashing out of the Champions League at the round-of-16 stage in his two seasons.