Match ends, Bosnia and Herzegovina 3, Iran 1.
Iran's hopes of qualifying for the World Cup last 16 ended as they lost to already-eliminated Bosnia-Hercegovina.
Carlos Queiroz's Iran side could have progressed to the second round with a win but their hopes were dented when Edin Dzeko gave the Bosnians a deserved lead with a crisp shot from 25 yards.
Roma's Miralem Pjanic slid home a second after the break.
Reza Ghoochannejad pulled one back but Avdija Vrsajevic sealed it to give Bosnia their first World Cup win.
Their first ever victory in a major tournament at least gives the Bosnians something to show for their efforts in Brazil.
Safet Susic's side were knocked out before Wednesday's match after narrow defeats by Argentina and Nigeria in their opening two games, but had created enough chances to have taken something from both games.
Dzeko's well-taken goal against the Iranians was scant consolation for the Manchester City forward after he had an effort ruled out incorrectly against Nigeria when the score was 0-0, and subsequently missed a number of opportunities to get his side back in to that game.
His 23rd-minute strike was little more than the Bosnians deserved after a positive start in which the City man had twice forced saves from Iran's Alireza Haghighi.
With the Iranians needing to win and hope Nigeria lost if they were to progress, they went on the attack immediately and Masoud Shojaei saw his shot come back off the crossbar less than a minute after Bosnia had scored.
It would have been their first goal in a World Cup finals since a 1-1 draw with Angola in 2006, but the half ended with Susic's side looking more likely to be the next team on the scoresheet.
They made it 2-0 with just under an hour gone when Iran conceded possession needlessly 40 yards from goal and Tino Susic moved forward before sliding through to the marginally offside Pjanic, who finished coolly into the corner.
Iran - under the management of former Manchester United coach Queiroz for the final time - pulled themselves back into it when Ghoochannejhad tapped home at the back post after Bosnia failed to clear a corner but any hopes of a comeback were short-lived.
Almost immediately after the restart, Sejad Salihovic played full-back Vrsajevic through on goal and he showed composure to score his first international goal.
It ensured that Iran have now gone out at the group stage in all four of their World Cup campaigns.
Bosnia coach Safet Susic: "The win against Iran is scant consolation, but I congratulate my players for a display of commitment and passion against a team needing a win to keep alive their hopes of progressing.
"We lacked experience and cool heads at crucial moments in the opening two games but I cannot complain about effort. That's just football."
Iran coach Carlos Queiroz: "The best team of the group did not qualify, Bosnia showed they have great players, great team with a lot of experience.
"Today they raised their levels and when that happened they gave us no chance.
"My players went to the limit of our mental capabilities, fitness and I'm very proud, very, very proud."



Line-ups
Bos-Herze
Formation 4-1-2-1-2
- 1Begovic
- 2Vrsajevic
- 5Kolasinac
- 21HadzicSubstituted forVranjesat 61'minutes
- 15Sunjic
- 4Spahic
- 7BesicBooked at 77mins
- 8Pjanic
- 9Ibisevic
- 11DzekoSubstituted forViscaat 84'minutes
- 14SusicSubstituted forSalihovicat 79'minutes
Substitutes
- 3Bicakcic
- 6Vranjes
- 10Misimovic
- 12Fejzic
- 13Mujdza
- 16Lulic
- 17Ibricic
- 18Medunjanin
- 19Visca
- 20Hajrovic
- 22Avdukic
- 23Salihovic
Iran
Formation 4-2-3-1
- 12Haghighi
- 15Montazeri
- 23Pooladi
- 6Nekounam
- 4Hosseini
- 5Sadeqi
- 7ShojaeiSubstituted forHeydariat 45'minutes
- 14Teymourian
- 16Ghoochannejhad
- 3HajsafiSubstituted forJahanbakhshat 63'minutes
- 21DejagahSubstituted forAnsarifardat 68'minutesBooked at 88mins
Substitutes
- 1Ahmadi
- 2Heydari
- 8Haghighi
- 9Jahanbakhsh
- 10Ansarifard
- 11Haddadifar
- 13Mahini
- 17Alnameh
- 18Rahmani
- 19Beikzadeh
- 20Beitashour
- 22Davari
- Referee:
- Carlos Velasco Carballo
- Attendance:
- 48,011
Match Stats
- Possession
- Home66%
- Away34%
- Shots
- Home12
- Away7
- Shots on Target
- Home5
- Away2
- Corners
- Home6
- Away5
- Fouls
- Home20
- Away17
Live Text
Post update
Full Time
Second Half ends, Bosnia and Herzegovina 3, Iran 1.
Post update
Ognjen Vranjes (Bosnia and Herzegovina) wins a free kick in the defensive half.
Post update
Foul by Reza Ghoochannejhad (Iran).
Post update
Ognjen Vranjes (Bosnia and Herzegovina) wins a free kick on the right wing.
Post update
Foul by Kirim Ansarifard (Iran).
Post update
Attempt blocked. Edin Visca (Bosnia and Herzegovina) right footed shot from the right side of the box is blocked. Assisted by Emir Spahic.
Post update
Corner, Iran. Conceded by Sead Kolasinac.
Booking
Kirim Ansarifard (Iran) is shown the yellow card.
Post update
Sead Kolasinac (Bosnia and Herzegovina) wins a free kick in the attacking half.
Post update
Foul by Andranik Teymourian (Iran).
Post update
Foul by Avdija Vrsajevic (Bosnia and Herzegovina).
Post update
Mehrdad Pooladi (Iran) wins a free kick on the left wing.
Substitution
Substitution, Bosnia and Herzegovina. Edin Visca replaces Edin Dzeko.
Post update
Foul by Muhamed Besic (Bosnia and Herzegovina).
Post update
Javad Nekounam (Iran) wins a free kick in the attacking half.
Goal!
Goal! Bosnia and Herzegovina 3, Iran 1. Avdija Vrsajevic (Bosnia and Herzegovina) right footed shot from the right side of the box to the bottom left corner. Assisted by Sejad Salihovic.
Goal!
Goal! Bosnia and Herzegovina 2, Iran 1. Reza Ghoochannejhad (Iran) right footed shot from the right side of the six yard box to the centre of the goal. Assisted by Javad Nekounam with a cross.
Post update
Corner, Iran. Conceded by Edin Dzeko.
Post update
Corner, Iran. Conceded by Muhamed Besic.