AL-AIN, United Arab Emirates -- China flirted with disaster before mounting a second-half revival as it fought back from behind to beat Thailand, 2-1, and reach the Asian Cup quarterfinals on Sunday.
The giant nation was all at sea as it fell behind to Supachai Jaided's opener but hit back after the break through substitute Xiao Zhi and Gao Lin's well-taken penalty.
It meant China lives to fight another day under Marcello Lippi, who is expected to step down after the Asian Cup, while Thailand exits with their heads held high.
In an open start, Theerathon Bunmathan saw a free kick tipped over and Wu Lei had an attempt smothered by Thai goalkeeper Siwarak Tedsungnoen before Thailand went ahead on 31 minutes.
From a corner, in front of Thailand's drumming and singing fans, Thitiphan Puangjan's miscued shot fell to Supachai Jaided, who turned and rammed it past Chinese goalie Yan Junling from close range.
The chances were falling thick and fast for Thailand and the "Thai Messi" Chanathip Songkrasin was adjudged to have fouled Feng Xiaoting as he jinked his way into a scoring opportunity.
China looked distinctly rattled, but nearly hit back just before half-time when Yu Dabao flashed his header wide from Hao Junmin's free kick.
China's star man Wu Lei, who missed their final group game with a shoulder injury, missed a series of chances after half-time, including one when he embarrassingly sliced an easy shot well wide.
But China was piercing the Thai defense again and again and on the hour mark, only Siwarak's legs preserved Thailand's lead when he parried Yu's goal-bound shot from point-blank range.
China finally scored midway through the second half when substitute forward Xiao, three minutes after coming on, headed straight at Siwarak before prodding home the rebound.
The onslaught didn't stop and after Gao was brought down by Chalermpong Kerdkaew, he nervelessly swept the spot-kick high into the net for a 2-1 lead.
Thailand wasn't going down without a fight and in injury time, Teerasil Dangda wasted a good chance and Pansa Hemviboon had Yan at full stretch with a powerful shot.
But ultimately it was China who joined Vietnam in the last eight, after the Southeast Asian champions stunned Jordan on penalties after a tense 1-1 draw in Dubai.
It ends a rollercoaster tournament for Thailand, who sacked its coach Milovan Rajevac after a 4-1 drubbing by India but recovered to reach the last 16.
© Agence France-Presse
For more sports coverage, visit the ABS-CBN Sports website.