Atletico Madrid have reached a deal with Chelsea to sign striker Diego Costa.
The Spain international will travel to Madrid in the coming days to undertake a medical and finalise personal terms.
The 28-year-old will reportedly cost a fee that could rise to €60million, depending on bonuses.
Costa will complete his move in January, when the transfer window reopens and Atletico's ban on signing new players comes to an end.
"Atletico Madrid and Chelsea have reached an agreement in principle for the transfer of Diego Costa," an Atletico statement confirmed.
"The agreement is subject to the signing of a contract between the club and the Spain international.
"The English club have granted permission to Diego Costa to travel to Madrid in the coming days in order to pass medical tests and to finalise his contract."
Chelsea also confirmed the news in a brief statement via their official website.
The news means the end is in sight for one of the more protracted transfer sagas of 2017, which began with rumours of a possible exit as early as January.
Costa then claimed in June that Chelsea boss Antonio Conte had told him via a text message that he was free to leave the club, despite having scored 20 goals to help them to a second Premier League title in three seasons.
Atletico have long been favourites to sign back the forward they sold to Chelsea in 2014 but a move during the most recent transfer window became impossible when the club failed to have a transfer ban - imposed by FIFA as punishment for irregularities in the recruitment of minors - overturned.
Costa has been in Brazil since July and has refused to return to Chelsea training, accusing the club of treating him "like a criminal".
Conte laughed off the comments and said he would not pick the striker even if he made himself available, having signed Alvaro Morata from Real Madrid to become his first-choice forward.
|Mourinho has ´a feeling´ Ibrahimovic will be back in 2017|
|Conte dismisses Mourinho feud as ´a stupid issue´|
|Always Man City can do better - Guardiola challenges Premier League leaders|
|Aaron Rodgers posts ´comeback starts now´ photo after surgery|
|Klopp anticipating Spurs thriller after Man Utd snoozefest|
|Mawson and Daniels join Mata´s Common Goal|
|Hughes thankful for Stoke stability after ´emotional´ Premier League sackings|
|Bosz determined to turn around Dortmund slump|
|UEFA charge Everton after fans strike Lyon players|
|Adelaide United 2 Melbourne Victory 2: Austin pegs back United after Lia double|
|Webb heartbroken by ´joke´ new Wales selection policy|
|Real Madrid blow as Navas suffers thigh injury|
|Muller close to his old self again, says Heynckes|
|Everton ban fan involved in ugly Lyon scenes|
|Boyd ´very close´ to new Broncos deal|
|British Cycling doctor at centre of ´mystery package´ investigation resigns|
|Manchester City star De Bruyne wants trophies, not awards|
|UEFA charge Roma over alleged racist chanting at Chelsea match|
|Ibrahimovic tipped for December return by training partner Cole|
|Savea replaces injured Todd on All Blacks bench|
|Schweinsteiger ´open to everything´ as he nears end of Chicago Fire contract|
|Ferrari issues have handed Hamilton the title - Button|
|Neymar confirmed wish to leave Barcelona at Messi´s wedding, says Xavi|
|Thomas battles to stay among the leaders as Luke tops the List in Jeju|
|Kershaw jokes he ´might retire´ if Dodgers win World Series|
|Westbrook posts historic triple-double for new-look Thunder|
|Espargaro edges Marquez, Dovizioso in practice|
|Raiders claim exhilarating win over Chiefs|
|Cronk wants to play in 2018, says agent|
|De Bruyne: Man City, United fighting for title|
|Dodgers crush Cubs to reach first World Series since 1988|
|Marshawn Lynch ejected after shoving official|
|WATCH: Hernandez crushes Cubs´ hopes with grand slam|
|Vettel retains F1 title hope|
|LeBron still trying to get into playing shape|
|Wilshere will get Premier League chance – Wenger|
|Giroud: I got lucky with Red Star winner|
|Astros manager Hinch reminds everyone ALCS is not over|
|Lakers coach Walton says players will ´come after´ Lonzo Ball|
|F1 Raceweek: Hamilton dismisses title talk as Alonso eyes future challenge|
|Montella urges fans to ´stand by´ Milan after San Siro boos|
|Koeman admits he could be sacked by Everton|
|Carreno Busta´s Finals hopes take Moscow blow, Dimitrov and Goffin stay on course|
|Gloucester back on track with Agen hammering|
|Everton 1 Lyon 2: Koeman feeling the heat, while Williams brawl overshadows spectacle|
|Bridgewater: I definitely believe I will play this year|
|AC Milan 0 AEK Athens 0: Frustration mounts for Montella in dour draw|
|MRI on Warriors forward Green´s knee negative|
|Giroud promised special winner, Wenger reveals|
|Injured Kyrgios finished for 2017|
|Former Croatia striker Klasnic undergoes third kidney operation|
|Garcia looking at home in Valderrama|
|Red Star Belgrade 0 Arsenal 1: Giroud´s special winner lights up drab encounter|
|Shakespeare: Leicester will ´pull away´ from Premier League danger|
|Robben yet to hold talks over new Bayern Munich contract|
|Bilic denies West Ham have discipline problem|
|Hamilton has no plans to take a knee at US Grand Prix|
|Alonso is the most complete driver in F1, says Button|
|Alonso to stay with McLaren|
|Nets guard Jeremy Lin out for season with ruptured patella tendon|
|Coles hails retiring Moore as ´one of the greats´|
|Benteke progressing ´ahead of schedule´|
|Ancelotti to Leicester unlikely, says Clement|
|Berdych´s World Tour Finals chances ended by back injury|
|Dyche not aware of any approach amid Leicester speculation|
|I love you, take my watch! – How Arnautovic earned a special gift from Mourinho|
|Hafeez reported for suspect bowling action|
|´Surprised´ Appleton calls for Foxes focus after Shakespeare sacking|
|Harris: Stokes should follow Warner´s example|
|Brighton boss Hughton feels ´unacceptable´ behaviour remains in football|