MADRID (AP) 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 55th goal of the season, but Atletico tied the score in the 35th minute when Radamel Falcao set up Diego Costa.

Ronaldo and teammates Mesut Ozil and Karim Benzema all hit posts with shots before Atletico went ahead when Miranda, a Brazilian defender, headed in a cross from Jorge "Koke" Resurrecion.

Mourinho was sent off for protesting a foul in the 76th minute. Likely heading back to Chelsea this summer, he is set to finish his last of three seasons in Madrid without a title.

Before that, Mourinho had spent most of the match in the dugout. He was jeered before kickoff at Real's Santiago Bernabeu Stadium by both sets of fans, with the home supporters upset at his treatment of goalkeeper Iker Casillas and supposed desire to leave.

"This is my worst season. I have never not won an important title. You can say I failed this season," a contrite Mourinho said.

Ronaldo received a straight red card in the 114th for kicking Gabi Fernandez in the face, setting off a sideline scuffle. Gabi was ejected seconds before the final whistle for a second yellow card.

"This is for our fans that have suffered for 14 years," Gabi said before receiving the trophy from Spain's King Juan Carlos. "I think this team worked hard for this and deserved it."

Atletico goalkeeper Thibaut Courtois made one-on-one stops to deny Gonzalo Higuain in the 104th and Ozil in the 109th. He also was struck on the head by an object thrown from the stands shortly after.

Atletico, which had 19 losses and six draws against Real since its previous victory, won its 10th Copa del Rey title and first since 1996.