Zinedine Zidane has stepped down as Real Madrid head coach for the second time, the club have confirmed.
The Frenchman has called time on his second spell in charge of the La Liga club, who he has led to two league titles and three Champions League victories since 2015.
Zidane told club directors and the first-team squad of his decision on Wednesday and is finalised his exit at Real's Valdebebas training complex a day later.
His departure comes after Real narrowly lost out on the league title to city rivals Atletico Madrid at the weekend. Real finished second in La Liga, two points behind Atletico, and were knocked out of the Champions League at the semi-final stage and the Copa del Rey in the round of 32 to end the season without a trophy for the first time in 11 years.
- Football facing 'downfall', say ESL trio Real, Barca and Juve
- How the European Super League was doomed to fail
- Bale, Real talks on hold until after Euros
Off the field, Real were one of the key players behind the failed Super League breakaway with the club president, Florentino Perez, repeatedly defending the plan and engaging in a war of words with Uefa that shows no sign of slowing down.
"It is now time to respect his decision and show him our appreciation for his professionalism, dedication and passion in all these years, and for what his figure represents for Real Madrid," a club statement read.
"Zidane is one of the great myths of Real Madrid and his legend goes beyond what he has been as a coach and player of our club. He knows that he is at the heart of Real Madrid and that Real Madrid is and will always be his home."
Where next for Zidane?
Spanish football expert Alvaro Montero told Sky Sports:
"It's an option that Zidane could replace Maurio Pochettino at PSG. He's unpredictable and he could well head back to France if Pochettino decides to return to Tottenham.
"It was thought that Juventus was an option before they turned to Massimiliano Allegri to replace Andrea Pirlo. But who knows what will happen after the Euros?
"Perhaps Didier Deschamps will leave the French national team and maybe Zidane will be his replacement. He's unpredictable so could stay a whole year without coaching."
Real Madrid will listen to offers for Eden Hazard and Gareth Bale this summer amid their continued interest in Kylian Mbappe and Erling Haaland.
Hazard has scored only five times since he moved from Chelsea two years ago in a deal worth up to £130m.
Injury problems mean the Belgian has featured in only 43 games across all competitions in two seasons in Spain.
The 30-year-old was not in the squad for Saturday's game against Villarreal as Real finished the campaign second in La Liga, two points behind champions Atletico Madrid.
The collapse of the proposed European Super League, plus their ongoing interest in Mbappe and Haaland, means Real Madrid need to raise money from player sales this summer.
As well as Hazard and Bale, Real will listen to offers for other players such as Luka Jovic.