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, provided 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 6m 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.
The move ends Suarez's six-year spell with Barca, during which he scored 198 goals in 283 appearances and formed a feared front three with Lionel Messi and Neymar.
On Wednesday night, Barcelona released a statement thanking Suarez for his time at the club.
"FC Barcelona would like to publicly express their gratitude to Luis Suarez for his commitment and dedication and wishes him all the best for the future," the statement said.
The club said a "farewell event" would take place for Suarez at 11:30 BST on Thursday before a press conference.
Atletico said the deal had been agreed "subject to passing his medical and agreeing and formalising the Uruguayan's contract."
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.
Latest Stories
-
Quincy Jones: His brilliance explained in 10 songs
3 hours -
Nigeria and Britain hail partnership to boost economic ties, security
3 hours -
Chad threatens to withdraw from multinational security force
4 hours -
Cocoa farmers hoard beans in anticipation of price hike, reports Reuters
4 hours -
Boat capsizes off Comoros islands, 25 killed, UN agency says
4 hours -
How are votes counted in the US election?
4 hours -
Mozambique presidential runner-up escapes alleged assassination attempt
4 hours -
Nigerian children who collapsed in court released
5 hours -
Quincy Jones: From ‘street rat’ to music mastermind
5 hours -
Bawumia outlines plans to develop three major railway lines alongside road projects
5 hours -
I want you to be millionaires through my responsible mining policies – Bawumia assures miners
5 hours -
‘Constitution reigns supreme in Ghana’- Declares Attorney General
5 hours -
‘Efua Ghartey’s GBA presidency has a divine touch’, says Attorney General Dame
6 hours -
Esports Ghana: Stakeholders gear up for pivotal meeting in Accra
6 hours -
GPL 2024/25: Legon Cities beat Yong Apostles to record back-to-back wins
6 hours