Defender Dani Alves has completed a shock return to Barcelona and becomes the first signing under new head coach Xavi Hernandez, the club announced on Friday.
The Brazil international had been a free agent since leaving Sao Paulo in September.
It was previously suggested that Barca were reluctant to bring Alves back, but the return of Xavi, who was appointed as manger last week following the sacking of Ronald Koeman, caused a change of opinion.
The club said in a statement: “FC Barcelona and Dani Alves have reached an agreement in principle for the player to join the football first team for the remainder of the current season. The Brazilian will be joining training from next week but will not be able to play until January.
“The club will announce the full details at his official presentation as a new FC Barcelona player.”
Alves joined Barca from Sevilla in 2008 and won 23 trophies during a glittering eight years at the club before leaving for Juventus in 2016.
He later had a spell with Paris Saint-Germain before leaving in 2019 to spend two years with Sao Paulo.
With the World Cup around the corner in Qatar next year, Alves, who won an Olympic gold medal with his country this past summer, is keen to find top-level football in a bid to make Tite’s squad for the tournament.