Diego Costa has left Atletico Madrid after the striker’s contract was terminated by mutual consent.

The club announced on Tuesday that Costa’s deal — which only had six months left to run, until June 2021 — had been rescinded.

Stream LIVE games and replays on ESPN+ (U.S. only)

It means Costa will be able to join a new club on a free transfer, while Atletico significantly reduce their wage bill, allowing them to reinforce the squad during the January window.

“Atletico Madrid and Diego Costa have reached an agreement for the termination of the striker’s contract, which had been to run out on June 30, 2021,” a club statement read. “The Hispanic-Brazilian striker asked for termination due to personal reasons in recent days and, on Tuesday, signed the termination, ending his tie with our club.

“The club thanks him and wishes him all the best for the next step in his professional career.”

Costa, 32, re-joined Atletico from Chelsea in January 2018 for €66 million after spending three-and-a-half seasons at Stamford Bridge.

His first spell in Madrid was a success, culminating in winning La Liga in 2013-14 and reaching the Champions League final that same season.

Costa scored 27 league goals that term as Diego Simeone’s team claimed the club’s first La Liga title in 18 years.

His return to the club was somewhat of a disappointment, with his form disrupted by a series of injuries that meant he was only able to score a total of 12 league goals over three years.

Last season, a herniated disc saw Costa absent for three months, from November 2019 until February 2020.

He began this campaign by testing positive for the coronavirus in September, returned to face a month-long absence with a hamstring injury in October, and was diagnosed with deep-vein thrombosis in November.

Costa returned to action, earlier than expected, to score a penalty in Atletico’s 3-1 La Liga win over Elche earlier this month, which will now be his last goal for the club.