Brazil have agreed that Robinho can play in Real Madrid's league title decider after the Spanish club apologised for not letting him train with his country.
Real will take the championship for the first time in four years if they beat mid-table Real Mallorca at home on Sunday.
In another club-versus-country saga, striker Robinho remained in Spain to train with Real this week despite Brazilian demands he join them for their training camp ahead of the Copa America in Venezuela.
"The Brazilian Football Confederation (CBF) has released Robinho and Marcelo (who has been selected for the under-20 team) and they will report after Real Madrid's game on June 17," said the CBF in a statement.
"Real Madrid have recognised the rights of the confederation, backed by FIFA legislation, to call up the players and also the trouble they have caused the national team."
The CBF said it had also agreed to allow full back Daniel Alves to play for Sevilla in their final game of the season.
The Copa America, Brazil are the holders after winning in Peru three years ago, starts on June 26.
The rules of world soccer's governing body FIFA allow national teams to call up players two weeks in advance.
Brazil have already lost Kaka and Ronaldinho for the tournament after the pair said they were tired and asked not to be picked.