Karim Benzema will leave Real Madrid after 14 years at the end of the season, the Spanish club confirmed on Sunday morning.
The former France international joined Real from hometown club Lyon in 2009 and has made 657 appearances, scoring 353 goals.
Benzema has played 42 times in all competitions this term, scoring 30 goals and assisting six more.
He did not feature in Real's 2-1 win over Sevilla on May 27, but could feature for one final time in their final league match of the season against Athletic Bilbao on Sunday night.
Benzema, 35, won LaLiga on four occasions and lifted the Champions League five times during a trophy-laden spell in the Spanish capital.
Real Madrid CF and our captain Karim Benzema have agreed to end his brilliant and unforgettable period as a player for our club," the Spanish club said in a statement.
"Real Madrid would like to show its gratitude and affection for who is already one of our greatest legends.Karim Benzema's career at Real Madrid has been an example of donduct and professionalism, and he has represented the values of our club. Karim Benzema has earned the right to decide his future.
Madridistas and all the fans around the world have enjoyed his magical and unique football, which has made him one of the great icons of our club and one of the great legends of world football.
"Real Madrid is and will always be his home, and he wish him and all his family the best in this new phase of his life.
"Next Tuesday, June 6, at 12:00pm, an institutional act of homage and farewell to Karim Benzema will take place at Real Madrid Sport City, which will be attended by our president Florentino Pérez."
Could Kane replace Benzema at Real Madrid?
With the news that Benzema will leave Real Madrid at the end of the season having been confirmed, could the Spanish giants now move for Harry Kane to replace him?
The Times reported this week, before Benzema's exit had been confirmed, that Kane was among their targets to replace the Frenchman should he decide to leave.
Real boss Carlo Ancelotti refused this week to be drawn on the club's reported interest in Kane, who is Man Utd's principal target this summer.
"Like I've said many times, Harry Kane is a great player and a great player of Tottenham," said Ancelotti.
"We have to respect the player and Tottenham."