Barcelona have reached an agreement to sign Arturo Vidal from Bayern Munich.
The Chile midfielder has agreed a three-year contract at the Nou Camp and will undergo a medical in the coming days, the Spanish champions announced on their website.
Vidal joined Bayern from Juventus in 2015 and won the Bundesliga title in each of his three seasons at the club.
Neither club have announced a transfer fee for the 31-year-old - who was under contract at Bayern until June 30, 2019 - but reports in Spain suggest Barca will pay in the region of 20 millions euros (£18m).
A Barca statement read: "Barcelona and Bayern Munich have reached an agreement for the transfer of player Arturo Vidal. The agreement is for the next three seasons and is pending the medical examination that the player will undertake over the course of the next few days."
Vidal played 124 competitive games for Bayern, scoring 22 goals and providing 17 assists. As well as his three Bundesliga titles he also helped the German giants win the DFB-Pokal in 2016 and the German Super Cup twice.
The former Bayer Leverkusen player said on Bayern's official website: "Thanks to FC Bayern and all the fans. I really enjoyed my time in Munich. I would like to thank the club for giving me another chance to take on a new challenge in Barcelona."
Barca have already signed Arthur, Malcom and Clement Lenglet this summer, while Andres Iniesta, Paulinho, Lucas Digne and Gerard Deulofeu are among those who have left the Nou Camp.