Barcelona have agreed to let striker Luis Suarez join La Liga rivals Atletico Madrid.
Suarez is not wanted at Barca and the Catalans were happy to release him for free, providing he did not join certain other top clubs.
The Uruguayan agreed terms on a reduced salary with Atletico after a move to Juventus fell through because of passport issues.
Barcelona chairman Josep Maria Bartomeu then blocked the deal because he did not wish to sell to a Spanish rival.
But, after meeting with Suarez’s representatives, the Catalan club have backed down, with the striker threatening to air his grievances to the media.
Atletico will have to pay a nominal fee of no more than 4m euros for the 33-year-old, which will be based on variables such as Champions League qualification.
Suarez will earn half of the 30m euros a year he was on at Barca at Atletico.
The move ends Suarez’s six-year career with Barca, during which he scored 198 goals in 283 appearances and formed one third of a feared front three with Lionel Messi and Neymar.
He joined the club for £74m from Liverpool in 2014 and helped them win four La Liga titles, four Copa del Reys and the Champions League and Club World Cup in 2015.
It also ends one of this summer’s long-running transfer sagas, which looked likely to result in the player ending up in Turin – a move that was dashed, according to Juventus directors, because of the amount of time it would have taken to secure Suarez an Italian passport.