Iran scored in the last minute of extra-time to beat pre-tournament favourites Japan 2-1 and book a place in the semi-finals of the Asian Cup being played in Al Rayyan, Qatar, on Saturday.
Iran captain Alireza Jahanbakhsh scored a 96th-minute penalty to break Japanese hearts.
It was a stunning comeback from Iran, who were behind at the break but roared back to knock out the Samurai Blue and keep alive their dream of a first Asian title since 1976.
Hidemasa Morita gave Japan, who were looking to lift the trophy for a record-extending fifth time, the lead midway through the first half in front of 36,000 at Education City Stadium.
Mohammad Mohebi drew Iran — themselves champions three times — level 10 minutes after half time and they dominated the remainder of the game.
But just when it looked like extra time, Kou Itakura brought Hossein Kanaanizadegan down in the box deep in stoppage time and Jahanbakhsh held his nerve from the spot.