Palestine and Syria advanced to the last 16 of the Asian Cup for the first time on a historic day for the tournament.
After Syria had overcome India 1-0 to book their progression from Group B, Palestine claimed their maiden Asian Cup victory by beating Hong Kong 3-0 to make it out of Group C.
Both teams – whose home nations are in the midst of conflicts – will progress as two of the four best third-placed sides.
Oday Dabbagh scored twice for Palestine, with Zeid Qunbar getting their other goal, in their emphatic victory at Abdullah bin Nasser bin Khalifa Stadium.
While Iran's 2-1 win over the United Arab Emirates in Tuesday's other Group C match was not enough to see Palestine through in second place, their progress was nevertheless sealed thanks to their improved goal difference over the other teams that either have, or may, finish third in their groups.
Both Iran and UAE join Palestine in progressing to the next round.
Mehdi Taremi scored both of Iran's goals in their victory, with Yahya Al Ghassani missing a penalty for UAE before grabbing a late consolation.
Syria, meanwhile, made it through thanks to Omar Khrbin's 77th-minute winner against India at Al Bayt Stadium.
Khrbin's decisive strike was Syria's only goal from their three group games.
Syria had failed to advance from the group stage in any of their previous six attempts.
Progress is a triumph for Argentine coach Hector Cuper, who was a back-to-back Champions League runner-up when in charge of Valencia. He also led Egypt to the final of the Africa Cup of Nations in 2017.
Australia advanced as the Group B winner after drawing with Uzbekistan 1-1.
The 2015 champions had already secured a place in the round of 16 after two straight wins, and they confirmed top spot after picking up a point at Al Janoub Stadium.
Martin Boyle fired the Socceroos ahead from the penalty spot in first-half stoppage time after a handball from Odiljon Xamrobekov.
But Uzbekistan held onto second place in the group thanks to a goal from substitute Azizbek Turgunboev, who rose to meet Jaloliddin Masharipov's cross in the 78th minute.