If the match in the Santiago Bernabeu Friday night is to prove Mourinho's swansong at Real, it didn't go as planned.

It wasn't the best of nights for his talisman Cristiano Ronaldo, either, as he saw red in the dying minutes.

Mourinho was ordered to leave the touchline by the referee for protesting a decision late in the second half as Atletico won their first Copa del Rey in 17 years.

The scrappy contest that featured more than a dozen yellow cards and two reds was settled by Miranda's header in the eighth minute of extra time on a night when it seemed Atletico, which hadn't beaten their city rivals since 1999, were destined to lift the trophy.

After Ronaldo opened the scoring in the 14th minute with a typically impressive header, Diego Costa leveled on a counter attack in the 35th after superb work by striking partner Radamel Falcao.

JUST WATCHED

Alex Ferguson's recipe for success

MUST WATCH

JUST WATCHED

Thiago Silva targets PSG dominance

MUST WATCH

Thiago Silva targets PSG dominance 03:07

Real Madrid struck the post three times prior to the game entering extra time and Atletico keeper Thibaut Courtois made two stunning saves to preserve the victory and help end his team's three-match losing streak in Copa finals.

The affair turned ugly in the dying minutes, with Ronaldo given a straight red card for kicking out at Gabi and players from both benches having to be separated. Courtois fell to the ground when struck by an item thrown from the stands at Real's home stadium.

Mourinho believed his team should have lifted the cup and had been plain unlucky.

"The result is 1-1 and it is not normal to hit the post three times," he said. "You don't have to be a magician of football to think that the result is not fair, that Atletico are not the deserved winners of the final.

"The refereeing is forgotten, the shots off the post are forgotten, all that remains is that the winner is Atletico."