View Photo Gallery: Italian goalkeeper Gianluigi Buffon and defender Leonardo Bonucci are fired after the Azzurri earned a spot in the quarterfinals.

The complex tiebreakers on the table for the final two matches of Group C play provided plenty of intrigue for Monday’s matches.

But no math was needed in Poland as Italy defeated Ireland 2-0 and Spain took care of the rest. The Spanish scored late to edge Croatia 1-0 to take the group and give Italy the second spot.

Antonio Cassano’s header at the near post provided the only goal of the opening half in either match, but it was Jesus Navas’ disputed 88th-minute finish that sealed Italy’s path to the quarterfinals.

Croatia, despite matching Spain all night and out-shooting the defending champions 21-16, could not equalize, and as the announcement of the final whistle made its way to Stadion Miejski in Poznan, the Italians erupted in celebration.

Jesus Navas scored late to send Spain through the quarterfinals. (Gero Breloer/AP)

The goal put Italy on top of the group and meant a goal from Croatia could oust Spain. But the Spanish — who in typical fashion held possession for 72 percent of the match — finally broke through in the final minutes.

Cesc Fabregas flicked a chip behind Croatia’s backline where Andres Iniesta timed his run perfectly to beat the offside trap and passed to Navas the easy finish. But while Iniesta appeared even with the backline when the ball was kicked, Navas was offside, leading the Croatians to stay put and appeal for a whistle while their goalie was left helpless behind them. The flag never went up and the goal stood.

In the other match, Ireland threatened to answer several times in the second half where a draw would have ousted the Italians in favor of Croatia. But in the 90th minute, mercurial Italian striker Mario Balotelli, on as a late sub, booted another Pirlo corner past Shay Given on a brilliant bit of skill with his back to the goal for a 2-0 lead.

Mario Ballotelli’s late strike sealed Italy’s win. (Antonio Calanni/AP)

Fresh off his strong outing against Ireland, Fernando Torres had a dreadful day for the Spanish and was subbed off in the 61st minute for Navas.

The Spanish will face the Group D runner-up while Italy will get the group winner. The Italians snapped a six-match winless streak in international competitions with their victory Monday and avoided another group stage exit after their poor showing at the 2010 World Cup in South Africa.


Euro 2012 tiebreaker rules

Ronaldo scores twice as Portugal knocks out the Dutch an advances

Czech Republic, Greece advance from Group A