[Read: Messi's double help Argentina beat Nigeria 3-2]
A powerful strike by Manchester City star Dzeko gave Bosnia an early lead before Miralem Pjanic added a second just before the hour to settle a relatively dull affair at Salvador's Arena Fonte Nova. The game burst into life in the final minutes as Iran striker Reza Ghoochannejad netted his side's first goal of Brazil 2014, but Bosnia replied immediately with an Avdija Vrsajevic goal.
FINAL GROUP F STANDINGS
Argentina Played 3, Won 3, Goals for 6, Goals against 3, Points 9
Nigeria Played 3, Won 1, Lost 1, Drawn 1, GF 3, GA 3, Points 4
Bosnia-Herzegovina Played 3, Won 1, Lost 2, GF 4, GA 4, Points 3
Iran Played 3, Lost 2, Drawn 1 GF 1, GA 4, Points 1
The result confirmed both teams' exit as Argentina and Nigeria reached the knock-out stages by finishing first and second respectively in the table after the Argentinians' 3-2 win in Porto Alegre. Bosnia, whose elimination had already been confirmed prior to the game, are left to rue what might have been after refereeing mistakes contributed to their 1-0 defeat to Nigeria in their previous match.
Iran scored their 1st goal of this WC with just 8 minutes remaining in the game
Safet Susic's side ended on a high to claim third and leave Iran bottom of the group with a single point from their draw with Nigeria. Salvador has now seen 21 World Cup goals in four group games after the Netherlands destroyed Spain 5-1, Germany thumped Portugal 4-0 and France dominated Switzerland 5-2 with a last 16 match and quarter-final still to come in the stadium.
Dzeko had the best of the early chances when he fired over after a powerful run into the area, then headed straight at Iran goalkeeper Alireza Haghighi. His much-threatened goal arrived on 23 minutes when Dzeko unleashed a fierce drive into the bottom right-hand corner past two defenders, which gave Haghighi no chance. Iran almost hit back immediately as midfielder Masoud Shojaei clattered the crossbar.