The international friendly between Brazil and England scheduled for Sunday to open the refurbished Maracana stadium will go ahead.
An 11th hour legal battle had been raging, after a judge issued an injunction stopping the game from going ahead.
The judgement came after the Rio de Janeiro State Prosecutor argued that rubble from the stadium’s redevelopment has not yet been removed from the precinct as promised by the contractors.
The fear was that the rubble could be seized and used as weapons should the crowd at the match become rowdy.
But the judge has now reversed her decision, and the match will be played to celebrate the refurbishment of Brazil's most iconic stadium, ahead of the Condeferations Cup.
"All safety requirements for the friendly between Brazil and England have been complied with," the judge said.