Georgios Samaras scored an injury-time penalty to put Greece into the second round of the World Cup with a 2-1 win over Ivory Coast.
Samaras was adjudged to have been tripped in the area by substitute Giovanni Sio, and calmly slotted in the spot kick for a win that puts Greece through to the knockout stage. Ivory Coast would have advanced with a draw.
Greece had not scored in their first two games in Brazil, but missed a handful of scoring chances against Ivory Coast, hitting the crossbar twice with shots from distance.
Veteran striker Didier Drogba started for Ivory Coast along with Yaya and Kolo Toure despite the recent death of their brother Ibrahim. The Ivorians wore black armbands as a sign of mourning.
The Greeks had taken the lead just before half-time through substitute Andreas Samaris, but substitute Wilfried Bony equalised for Ivory Coast in the 74th, beating goalkeeper Pangiotis Glykos from close range after being set up by Gervinho.
That goal looked like it would put the Africans through until the late drama. Samaras met a cross in the area and went to shoot with his left leg, which got caught against the leg of Sio. Samaras' foot then hit the ground and he fell to the turf, drawing a penalty.
With his country's hopes on the line, Samaras sent his spot kick past goalkeeper Boubacar Barry, who guessed the right way but couldn't keep the ball out.