Real Madrid struck twice deep into extra time to book their place in the final of the Spanish Super Cup with a thrilling 5-3 victory over rivals Atletico Madrid in Riyadh.

Carlo Ancelotti’s side looked to be heading out of the competition after Antonio Rudiger’s 78th-minute own goal put Atletico 3-2 up but Dani Carvajal struck with five minutes remaining to send the match into extra time.

The derby seemed destined for a penalty shoot-out until Joselu’s header deflected off Atletico defender Stefan Savic and into the net before Brahim Diaz’s late breakaway goal sealed Real’s spot in the final.

Antione Griezmann had earlier become Atletico’s all-time record goalscorer by netting his 174th goal for the club to make it 2-2 after a pulsating first half which also featured strikes from Mario Hermoso, Rudiger and Ferland Mendy.

Diego Simeone’s men had the first big chance in the sixth minute as Samuel Lino’s whipped effort looked to be heading into the top corner from the edge of the box but goalkeeper Kepa Arrizabalaga was on hand to tip over the crossbar.

The save counted for very little as Atletico hit the front from the resulting corner when Hermoso was left unmarked at the back post to nod into the net from Griezmann’s delivery.

Real swiftly equalised in similar fashion from a corner when Rudiger headed home from Luka Modric’s cross.

Ancelotti’s side turned the game on its head just before the half-hour mark as Carvajal’s pass into the area was cleverly flicked home by Mendy to make it 2-1.

But Atletico responded just seven minutes later when Griezmann slammed into the bottom-left corner from outside the area to seal his place in the club’s history.

Real had a golden opportunity to retake the lead as Rodrygo picked up the ball inside the area and pulled off a clever fake shot to open up the space for him to shoot at goal but Jan Oblak brilliantly dived in front of the effort to somehow keep the scores level.

Atletico came closest to the opening goal of the second period when Lino capitalised on some sloppy play from Real Madrid and burst forward to strike just wide of the far post.

But they did take the lead with 12 minutes left as Kepa failed to deal with a ball into the box which bounced off Rudiger and into the net.

Real were not to be denied though as Carvajal hit back with five minutes to go. Vinicius Jr’s initial effort was kept out by Oblak but the ball fell to Jude Bellingham whose drilled shot was cleared off the line before Carvajal slammed into the top corner.

As spot-kicks loomed on the horizon Real found the killer blow.

Joselu’s flicked header was bundled into his own net by Savic and Ancelotti’s side added the icing on the cake when Diaz won a foot race with Oblak and slotted into an empty net to book Real’s place in the final against either Barcelona or Osasuna.