Tom Rogic's Celtic have been knocked out of the Europa League after a dramatic late winner from Ajax's Vaclav Cerny condemned the Scottish outfit to a 2-1 home defeat.
Callum McGregor's early goal for the hosts was cancelled out by an effort from Arkadiusz Milik in an entertaining first half at Celtic Park.
It seemed the game would end in a draw - a result which, with Fenerbahce winning 2-0 at Molde in Group A's other fixture, would have seen both sides crash out of the competition.
However, Celtic were caught on the break from their own corner in the 88th minute, 18-year-old substitute Cerny rushing clear to score his first goal for the club and clinch the Dutch side's first win of the group phase.
The dramatic victory means Ajax must now defeat Molde at home on matchday six and hope Celtic take all three points from Fener if they are to reach the last 32.
Socceroo Rogic started the clash in midfield but was unable to assert his recent scintillating form on the match and was subbed after 66 minutes for Charlie Mulgrew.
For Celtic, it was another disappointing end to a European campaign with Ronny Deila's side destined to finish bottom of the group regardless of their result in Turkey.
Elsewhere in the Europa League, former Adelaide United winger Awer Mabil was a 46th minute substitute for his Danish club Mijtylland in their 1-0 loss to Legia Warsaw in Poland.
And former Sydney FC marquee Marc Janko has qualified for the knockout stage after his Swiss club Basel came back from 2-0 down to draw 2-2 with Fiorentina.