Five years after leaving Barcelona for Juventus, Alves returned to the Camp Nou as Xavi Hernandez's first signing in the January transfer window.
The 39-year-old helped Barcelona recover from a stuttering start to the season to finish second on the Spanish La Liga table, making 17 appearances in all competitions and scoring one goal.
Alves won 23 trophies during his first stint at the Camp Nou, including six La Liga titles and three UEFA Champions League trophies.
It was expected that the former Sevilla right back would remain with Barcelona to help stake a claim for a place in Brazil's World Cup squad but the veteran will be moving on.
The Brazil international posted on Instagram: "Now the time has come for our farewell. They were eight-plus years dedicated to the club, the colours, and that house.
"But like everything in life, the years pass, the paths diverge and the stories are written for some time in different places – and that's how it was."
"I hope you don't miss my craziness and my daily happiness.
"Hopefully also those who, if they remain, change the history of that beautiful club, I wish it from my heart. There were 23 titles won: two trebles, one sextuple and a great golden book written.
"It closes a very beautiful cycle and opens another even more challenging one. May the world never forget: A lion even if he is 39 years old is still a good crazy lion.
"Forever visca al Barca!"