Atletico Madrid have agreed to rescind striker Diego Costa's contract.
A statement from the current La Liga leaders said the 32-year-old, whose contract runs out in June 2021, had asked several days ago to leave the club immediately for personal reasons and on Tuesday he signed his release from his current deal which makes him a free agent.
The club said on their official website: "Atlético de Madrid and Diego Costa have reached an agreement for the termination of the striker's contract, which was to end on 30 June, 2021. The striker asked to leave the club for personal reasons a few days ago and on Tuesday signed the termination of his contract.
"The club thanks Diego Costa for his dedication during these years and wishes him well in the next stage of his professional career. "
Speaking at a news conference moments after the announcement, Atletico Madrid manager Diego Simeone added: "We have spent a lot of time together over the years, he has given us a lot and we have given him a lot too.
"We spoke about his personal issues and the club wanted to help him without harming its own interests and we feel better now we have resolved the issue.
"He felt the need to find a new challenge, and I'm sure wherever he goes he will do well, because he's a fighter."
Costa was part of the Atletico side which won La Liga in 2014 and played for the club in that year's Champions League final against city rivals Real Madrid.
The Brazil-born former Spain international moved to Chelsea in the summer of 2014 before returning to Atletico to rejoin Diego Simeone's side in January 2018.
He made seven league appearances this season, scoring twice, with Joao Felix and summer arrival Luis Suarez among those ahead of him in the pecking order up front.