Robinho And Diarra Will Play For Real Madrid On Sunday
The duo were at the centre of a dispute with Brazil and Mali repectively as both countries wanted them to report to their training camps and miss the match against Real Mallorca.
Madrid president, Ramón Calderón, held lengthy negotiations with representatives of the two national sides and thrashed out a deal that earlier looked to have been impossible.
Robinho has been called into Brazil's squad for the forthcoming Copa América and was expected to report at the pre-tournament training camp.
If the forward had arrived then he would have been allowed to return to Madrid for the last match of the Spanish season without any problems, but la Real were unwilling to let him go.
After talks on Monday broke down, los Merengues have now reached an agreement after a second round of negotiations.
"He can play for us because he has been called up for a training camp and not an official game," Calderón explained.
Diarra will also be available after a similar agreement was reached that will see him appear for Mali against Sierra Leone in the African Nations' Cup qualifier.
The midfielder had insisted that he would choose club over country if a decision had to be made, but he will now be able to play in both games.