Real Madrid suffered an almighty fright before a Cristiano Ronaldo hat-trick hauled them back from 2-1 down and gave them a 4-2 win over Kashima Antlers in the Club World Cup final in Yokohama on Sunday.

Two goals from Gaku Shibasaki stunned the European champions as the Japanese hosts took the lead early in the second half before a Ronaldo penalty brought Real level on the hour. The 11-times European champions then survived several more scares and a possible sending-off for their captain, Sergio Ramos, before Ronaldo scored twice more in the first period of extra-time.

Real, who won the tournament for the second time in three years, appeared set for an easy victory when Karim Benzema gave them a ninth-minute lead but Shibasaki changed the story by levelling one minute before half-time.

Real Madrid 4-2 Kashima Antlers: Club World Cup final – as it happened Read more

Kashima were the first Asian team to reach the final although they qualified for the tournament as champions of host nation Japan. The Asian champions Jeonbuk Motors had lost in the quarter-finals.

Real went ahead when Luka Modric’s volley was parried by Hitoshi Sogahata and Benzema tapped in the rebound. Kashima refused to be overawed, continued playing their neat football and snatched a shock equaliser just before the break.

Facebook Twitter Pinterest Cristiano Ronaldo lifts the ball over Kashima goalkeeper Hitoshi Sogahata. Photograph: Kiyoshi Ota/EPA

Shoma Doi’s cross found Shibasaki, whose first touch was poor but he was gifted a second attempt when Raphaël Varane failed to clear and he smashed the ball into the net.

Shibasaki struck again six minutes after the break when he collected a poor Real clearance, got away from three opponents and fired a low shot past Keylor Navas from 25 yards.

Real were facing their first defeat since they lost to Wolfsburg in April, a run of 36 competitive games, until Lucas Vázquez was bundled over by Shuto Yamamoto and Ronaldo converted the resulting penalty on the hour.

Kashima continued to give as good as they got and had three good chances in the final minutes of normal time. Fabricio’s goalbound drive was tipped over by Navas and the Costa Rica goalkeeper came to the rescue again one minute later by blocking Mu Kanazaki’s shot after he got free of the Real defence.

Yasushi Endo could have won it with the last kick but fired wide at the far post while Ramos was lucky to escape a second yellow card for a push.

Ronaldo ended Kashima’s dream when he collected Benzema’s sliderule pass and fired past Sogahata eight minutes into extra-time, then settled the match six minutes later with an emphatic finish into the roof of the net.