Real Madrid have confirmed Jose Mourinho will be unveiled as their new coach on Monday after agreeing a compensation deal with Inter Milan.
The clubs' respective presidents, Massimo Moratti and Florentino Perez, met in Milan this afternoon to thrash out a financial deal to facilitate the early release of Mourinho from his contract at the San Siro, which ran until 2012.
Mourinho will replace Manuel Pellegrini in the Madrid hotseat after the Chilean was sacked on Wednesday night.
He will be presented at the Bernabeu at 1pm local time on Monday.
Madrid immediately outlined their intention to replace Pellegrini with Mourinho once they and the former Chelsea boss had negotiated his release.
That proved trickier than had been expected, with Inter seemingly determined to claim the full 16million euros they were entitled to according to a release clause in Mourinho's contract.
However, Inter, who were guided to the treble by Mourinho during 2009/10, and Madrid confirmed this evening that a deal - reportedly worth in the region of 8million euros - had been done.
A joint statement from the two clubs read: "Massimo Moratti and Florentino Perez met this afternoon.
"In light of the excellent and constructive relations of friendship that exist between the two clubs, an agreement was reached on the contractual clause that binds Jose Mourinho to FC Internazionale.
"The time and the manner by which the agreement will be honoured has been defined.
"Massimo Moratti thanks Florentino Perez for his willingness to join him in Milan and for his courtesy, which confirms, once again, the strong link between the two prestigious club."
Inter president Moratti had earlier hinted compromise was not on the agenda.
"Mourinho has been spectacular, intelligent, brave and we acknowledge that," said Moratti. "This doesn't take away the fact that there is still an issue regarding the negotiations with Mourinho and with the club that wants him.
"We want to end Mourinho's negotiations well, but we have a right to defend a position that is based on honesty and legality with regards to an agreement that was done with someone (Mourinho) that did their duty and the club (Inter) that allowed him the chance to free himself of his contract.
"Our position is not one of force. There are conditions and I don't think our attitude has been harsh. We would have continued with Mourinho because there's no coach like him."
Moratti admitted that Mourinho's decision to announce his wish to leave Inter and join Real a week prior to his club's Champions League final against Bayern Munich was not ideal.
"It wasn't favourable," he said. "But the team succeeded (winning 2-0) and so did Mourinho so it didn't burn or hurt me.
"But for him (Mourinho), things could have turned out for the better had the timing been different."
Mourinho has already requested the Spanish giants try to lure several Inter players to the Bernabeu this summer.
When asked if Inter would be willing to sell some players, Moratti said: "Yes, but at an extra cost."
One of those players Mourinho is keen to have at his disposal is Brazil international Maicon.
It has been suggested a way of tackling the stalemate of Mourinho's get-out clause could be for Madrid to pay an inflated price for the likes of Maicon and misfit winger Ricardo Quaresma.
"I am a fan of Maicon," said Moratti. "Many clubs are fans of Maicon but I have not entered in any negotiation with regards to him."
Any big influx of players from Inter would not necessarily be greeted warmly at the Bernabeu.
Mourinho's European success with the Nerazzurri came playing a relatively defensive style, something which is anathema the Madrid fans.
Mourinho believes the style of play is dictated by the players available.
"We have to know what we have and apply it in the best possible way to create damage," he told AS. "Madrid has Cristiano Ronaldo and Kaka that are very good on one-on-ones.
"We have to find a style of play that allows them to do that. The principles of play depend on the players you have."
He added: "I think Madrid have signed me because they know that they can demand aims in the short term but that I am also capable of leaving a base for the future.
"It's clear that I work for myself but also for clubs. At Chelsea you can see scouts and physical trainers that I left there. The same goes for Inter.
"I want to leave a mark at this club, not only with titles but with other things. I promise from my first day that I will bring out the best in the players, that I will take care of them."Reuse content