Greece qualified for the last 16 of a World Cup for the first time with a dramatic victory against Ivory Coast.
Georgios Samaras converted a controversial injury-time penalty to seal the win after he was adjudged to have been fouled by Giovanni Sio.
Greece had taken a first-half lead when substitute Andreas Samaris scored after Cheick Tiote’s defensive mistake.
Ivory Coast had looked like advancing as Wilfried Bony equalised from Gervinho’s pass, before the late twist.
Soon after their elimination from the tournament was confirmed, Ivory Coast coach Sabri Lamouchi resigned.
Greece will face Costa Rica in the second round in Recife on Sunday, while the Ivorians have now gone out in the group phase in each of the last three World Cups.
They began the day second in the table and, with Colombia beating Japan 4-1 in the other Group C match, needed only a point to become the first African side to qualify for the second phase in this year’s competition.
However, Greece, who offered little as an attacking threat in the second half, were given an opportunity to grab the winner when referee Christian Lescano pointed to the spot, despite strong Ivorian protests.