Miranda headed home a dramatic late winner as Brazil beat Argentina 1-0 in the Saudi Superclasico on Tuesday night.
The Inter Milan centre-back rose highest to meet Neymar's 93rd-minute corner as Brazil edged past their fierce rivals in the King Abdullah Sports City in Jeddah.
And that proved to be the difference between the two South American rivals in a contest packed full of Premier League-based players, including Manchester City's Danilo, who was substituted with an ankle injury.
Miranda's late goal spoiled an otherwise strong defensive performance from Argentina, who contained Brazil for long periods.
With Neymar to the fore, Brazil exerted late pressure and could have scored in the few minutes before Miranda struck.
Casemiro came close with a 25-yard free kick manufactured by Neymar that flew past Romero's left post. Then Nicolas Otamendi stuck out a boot to deflect a diverted shot from Richarlison in the last minute.
Argentina's best chance came during a period of pressure around the hour mark, when Paredes hit a swerving, dipping drive that had Brazil 'keeper Alisson beaten.
Missing from Argentina's line-up were City's in-form forward Sergio Aguero, Paris Saint-Germain winger Angel Di Maria and Lionel Messi.
Messi sat out Argentina's last three matches, all friendlies, since the country's disappointing last-16 elimination from the World Cup in Russia.
He is believed to have asked for some time off from international duty ahead of next year's Copa America in Brazil.
It was the 104th time the South American arch rivals have faced each other in an official match, with Brazil marginally ahead on 41 wins to 38, with 26 draws.
The two sides last met in June 2017 in a friendly in Australia, won 1-0 by Argentina, but Brazil strolled to a 3-0 success in their last competitive fixture, a World Cup qualifier in November 2016.