Petr Jiracek's second-half goal ensured the Czech Republic squeaked into the quarter-finals of Euro 2012 via a 1-0 victory as co-hosts Poland suffered an early exit.
Outplayed for the majority of the first half, the Czechs were seemingly stung into action after Greece took a half-time lead against Russia in the other Group A game in Warsaw.
That result left Michal Bilek's men needing all three points to reach the last eight and after dominating the tempo after the interval, Jiracek's calm finish ensured they topped the group, with Russia and Poland the eliminated teams.
Poland were backed by boisterous home support and nearly gave them something to shout about early on but Dariusz Dudka's overhead kick hit the side netting. Yet they should have been behind soon after and were grateful for Vaclav Pilar fluffing his lines in front of goal after Theodor Gebre Selassie picked him out with a low ball into the area.
As the frenetic start continued, it seemed only a matter of time before the Czech Republic defence would be breached and goalkeeper Petr Cech had to be at his best to push away Sebastian Boenisch's dipping 30-yard effort.
With the rain teeming down in Wroclaw, the Czechs, who beat Greece after losing to Russia, ended the half well. Milan Baros, after beating the offside trap, failed to control David Limbersky's chip over the defence while Pilar's powerful strike from the edge of the area was gathered by Polish keeper Przemyslaw Tyton at the second attempt.
As the teams trudged off at the interval it was the Czechs who would be going through but Greece taking a shock lead on the stroke of half-time against Russia meant both the Czech Republic and Poland needed victory if the result in Warsaw stayed the same.
Spurred into action the Czechs responded positively, dominating possession in the early stages of the second half but failing to create any clear cut chances. However, Poland were conceding needless free-kicks on the edge of their area and were nearly made to pay for their reckless defending.
The Czechs were rewarded for their second-half persistence in the 72nd minute as Jiracek gave them a deserved lead. Baros ran through on goal before sliding the ball to Jiracek, who cut past Boenisch and coolly slotted past Tyton.
Poland head coach Franciszek Smuda threw caution to the wind, bringing on Pawel Brozek and Adrian Mierzejewski, but they failed to test Cech. However, in injury time Poland's Jakub Blaszczykowski went through on goal and lifted the ball over Cech only for Tomas Sivok to head off the line, with the final whistle blown immediately after.