Turkey remain in with a chance of reaching the last 16 of Euro 2016 after securing an impressive 2-0 win over Czech Republic in Lens on Tuesday.
Fatih Terim's side came into their final Group D encounter without a goal or point to their name, but victory thanks to strikes from Burak Yilmaz and Ozan Tufan lifted them above their opponents and into contention for one of the third-place qualification berths.
By contrast, Czech Republic, missing talisman Tomas Rosicky through injury, are eliminated with their stirring late fightback to earn a 2-2 draw against Croatia last time out ultimately counting for nothing.
The opener arrived in the 10th minute as Burak applied the decisive touch to a sweeping Turkey move with a fine finish, before Tufan smashed home to double the lead midway through the second half.
Czech Republic struck the woodwork through Tomas Sivok shortly after Burak's effort, but Pavel Vrba's men - who knew a win would seal a last-16 spot - failed to create much else in the way of goalscoring opportunities as they crashed out.
Meanwhile, Turkey must wait for results from Groups E and F on Wednesday to see if their participation at the finals will be extended, while the result also subsequently guaranteed Northern Ireland's progress from Group C.
Terim made three changes from the meek 3-0 defeat to Spain and it was one of those, Emre Mor, who teed up Burak to break the deadlock in the early stages.
Arda Turan had come in for heavy criticism following the first two games, but it was the captain's clever pass that freed Mor, who squared for Burak to sweep home.
Czech Republic went agonisingly close to a swift equaliser when Sivok thudded a header against the base of the post from a right-wing corner.
Pavel Kaderabek brought a save out of Volkan Babacan at his near post before Tomas Necid steered an effort over as Vrba's side grew further into the contest.
Kaderabek just failed to get a telling touch on Necid's flick on the half-hour, and Jaroslav Plasil stung the palms of Babacan with a rasping 25-yard drive.
Turkey made it to the interval with their lead intact, and threatened a second just prior to the hour when Mor blazed over on the break.
Vladimir Darida and Necid brought smart stops out of Babacan as the Czechs responded, but Turkey added to their advantage in controversial circumstances in the 65th minute.
Mehmet Topal appeared to be in an offside position when a free-kick was glanced in his direction, before he laid off to Tufan, who smashed past Petr Cech at his near post from close range.
Substitute Olcay Sahan fired wide as Turkey went in search of a third late on, but there to be no more goals as Terim's men kept their hopes alive.
Key Opta stats:
- Burak Yimaz has netted eight goals in his last 11 games for Turkey.- Emre Mor is the third-youngest player to provide an assist in a Euro finals game since 1980 (18y 332d), with only Enzo Scifo (18y 114d in 1984) and Wayne Rooney (18y 240d in 2004) younger.- Petr Cech has conceded 21 Euro finals goals, more than any other goalkeeper in history.- Turkey last Euro finals win also came against Czech Republic, 3-2 in the 2008 group stages.