Real Madrid have announced that head coach Jose Mourinho will leave the club at the end of the season after three years in charge of the Spanish giants.
President Florentino Perez revealed the decision at a packed news conference.
Mourinho, 50, who has been linked with a return to Chelsea, won the league and Copa del Rey at Madrid.
“We’ve decided to bring our relationship to an end,” said Perez. “Nobody’s been sacked, it’s a mutual agreement.”
Real are currently 13 points behind Barcelona in the league and were beaten by city rivals Atletico in the Spanish Cup final last Friday.
They also lost in the semi-finals of the Champions League in each of their three seasons under Mourinho.
Real Madrid have two games left this season. They are away at Real Sociedad on 26 May, with Mourinho taking charge at the Bernabeu for the final time on 1 June against Osasuna.
“The club and manager agree the timing is right to bring our relationship to an end,” Perez added.
Champions League: 2004 (Porto), 2010 (Inter Milan)
Uefa Cup: 2003 (Porto)
Premier League: 2005, 2006 (Chelsea)
FA Cup: 2007 (Chelsea)
League Cup: 2005, 2007 (Chelsea)
La Liga: 2012 (Real Madrid)
Copa del Rey: 2011 (Real Madrid)
Serie A: 2009, 2010 (Inter Milan)
Coppa Italia: 2010 (Inter Milan)
Primeira Liga: 2003, 2004 (Porto)
Taca de Portugal: 2003 (Porto)
“On behalf of the board of directors, I would like to thank Jose Mourinho for all his hard work.
“The team has improved in his three years and we wish him all the best.”
Real had not won a trophy in the two years preceding Mourinho’s appointment.
His deal was scheduled to run until 2016 after he had signed a contract extension following last season’s La Liga success.
An agreement has been made on his exit now though, with fellow former Chelsea boss Carlo Ancelotti tipped to replace him after he expressed his desire to make the switch to the Bernabeu.
But Perez denied a replacement had been lined up to take over from Mourinho.
“We have no pre-contract signed with any managerial candidate,” he said.
“It’s something we’ll have to look at in the coming days.”
Paris St-Germain head coach Ancelotti, 53, had earlier said: “I’ve asked to leave and I am waiting for their answer.”
Analysis – 5 live’s Ian McGarry
“It’s a big leap of faith on [Chelsea owner Roman] Abramovich’s part to bring Mourinho back. Let’s face it, they parted on very bad terms.
“But Mourinho brings box office, he loves the media spotlight. I think he’s romanticised the relationship with the [British] media a little.
“It wasn’t as cushty as he’s made out in press conferences over the last few months, when he said he is loved by fans and the media. We do Jose, but for a reason. It doesn’t mean you love us all of the time.
“We’ve all had our fall-outs. I think it will be a very different landscape he returns to and a very different Chelsea team. Chelsea have evolved since he was here.”
But the Ligue 1 champions’ Qatari president Nasser al-Khelaifi said: “He [Ancelotti] asked to depart for Real Madrid. It is not possible because he has a contract for one year more, so that is our decision.”
Real have only two league games left to play this season, with Mourinho set to be in charge
as he takes his team to the Basque region to face Champions League hopefuls Real Sociedad on Sunday, before ending the campaign with the visit of relegation-threatened Osasuna on 1 June.
It is his failure to win any trophies this season which appears to have accelerated his departure from Madrid – the Portuguese labelling this season “the worst of my career”.
Former Benfica, Uniao de Leiria and Porto boss Mourinho left Inter Milan for Real in 2010 after guiding the Italians to the Champions League crown, replacing Manuel Pellegrini as manager.
He finished second in La Liga in his first season – four points behind Barcelona – but won the title a year later, amassing a record 100 points in the process.
However, this season Mourinho has cast a sulky figure, arguing with established players such as Iker Casillas, Sergio Ramos and Pepe, while Barcelona sauntered to the title.
Juventus: Intertoto Cup 1999
AC Milan: Coppa Italia 2003; Champions League 2003, 2007; Uefa Super Cup 2003, 2007; Serie A 2004; Supercoppa Italiana 2004; Fifa Club World Cup 2007
Chelsea: Community Shield 2009; Premier League 2010; FA Cup 2010
PSG: Ligue 1 2013
In this season’s Copa del Rey final defeat by neighbours Atletico, Mourinho was sent from the dugout for protesting a referee’s decision while, in April, his side were ruthlessly outclassed by Borussia Dortmund in the Champions League. Following that exit, he hinted at a return to Chelsea.
“I know in England I am loved,” he said. “I know I am loved by some clubs, especially one.”
Mourinho won two consecutive Premier League titles during his three-year spell at Chelsea, which ended in September 2007, also lifting the League Cup twice and the FA Cup once.
During his tenure at Stamford Bridge, Mourinho won 124 of his 185 games in charge – including a 60-game unbeaten run at home in the league before surprisingly leaving the club in September 2007.