Atletico Madrid ended a 25-game, 14-year winless streak against rival Real Madrid, getting a 98th-minute goal from Miranda for a 2-1 victory in the Copa del Rey final on Friday night following the ejections of Real star Cristiano Ronaldo and coach Jose Mourinho.
Ronaldo put Madrid ahead in the 14th minute with a header, his 54th goal of the season, but Atletico tied the score in the 35th minute when Radamel Falcao set up Diego Costa.
Real Madrid hit the goal frame three times, and Atletico went ahead when Miranda, a Brazilian defender, headed in a cross from Jorge "Koke" Resurrecion.
Mourinho was sent off for protesting in the 76th minute and Ronaldo received a straight red card in the 114th for kicking Gabi Fernandez in the face, setting off a sideline scuffle.
Atletico had 19 losses and six draws against Real since its previous win.