Bosnia-Herzegovina recorded their first FIFA World Cup win with a 3-1 triumph over Iran that also saw their opponents exit the tournament.
With their fate already sealed after defeats to Argentina and Nigeria, Bosnia played with freedom and made history as goals from Edin Dzeko, Miralem Pjanic and Avdija Vrsajevic saw them collect their first points at the showpiece.
The result also ended Iran's stay in Brazil, as they finished last in Group F with just one point from three matches.
Carlos Queiroz's side needed to beat Bosnia and hope Argentina defeated Nigeria, but saw their slim chances of progression end in Salvador on Wednesday.
Dzeko broke the deadlock midway through the first half with a well-placed low strike from 25 yards, and Pjanic doubled their lead a minute before the hour.
Reza Ghoochannejad gave Iran a lifeline with eight minutes left, tapping in from close range, but Vrsajevic responded within 60 seconds for Bosnia, scoring an excellent angled finish.
The result means Nigeria – who were beaten 3-2 by Argentina – progress to the last 16 with Alejandro Sabella's side.
Bosnia coach Safet Susic rang the changes following their defeat to Nigeria, making five, as Vedad Ibisevic lined up alongside Dzeko in attack, while, in stark contrast, Iran were unchanged after their impressive, albeit fruitless, performance against Argentina.
Bosnia – who had been on the front foot since kick-off – had their pressure rewarded in the 23rd minute when Dzeko, who proved an early threat, broke his World Cup duck.
The Manchester City forward won the ball 35 yards from goal and charged upfield, evading two challenges before firing a low left-footed strike past Iran goalkeeper Alireza Haghighi, into the inside of the post, and in.
Iran were denied an immediate response when Masoud Shojaei's deflected effort from just inside the penalty area hit the crossbar after good work from Ashkan Dejagah on the right.
Ghoochannejad was next to go close for a rejuvenated Iran, but was denied by Bosnia goalkeeper Asmir Begovic in the 31st minute, while after the break, Dejagah completely missed the ball when presented with a good chance to equalise.
And Pjanic made Iran pay with 59 minutes played, as he netted a composed finish from seven yards after Tino Susic found him with a perfect pass.
Iran gave Bosnia a scare though when, having failed to net in their first two games, they finally got themselves on the scoresheet.
Ghoochannejad was the man responsible, applying the finishing touch to Javad Nekounam's dangerous low cross.
It mattered little, though, as Bosnia sealed their victory when Vrsajevic fired in off the post to end a swift counter-attack.
Aussies Abroad: Vukovic’s Genk beaten in battle of Belgium’s top two
Danny Vukovic’s Genk remain well clear on top of the table despite falling to a rare defeat in Belgium against Club Brugge overnight. In a meeting of the competition’s top two at the Jan Breydel Stadion, Genk were beaten the fired-up home side, going down 3-1. There was lit
Aussies Abroad: Ryan’s Brighton through to Quarter-Finals while Milligan, Giannou pick up strong results
There were a handful of Caltex Socceroos in action on Sunday morning (AEDT) while some key figures were rested as their clubs negotiated cup ties. Firstly to Europe where Mark Milligan played a full 90 at the heart of Hibernian’s midfield as they welcomed new manager Danny Hec
Aussies Abroad: Luongo gallant in Watford defeat
Caltex Socceroos midfielder Massimo Luongo can turn his attention to the EFLChampionship after QPR crashed out of the FA Cup on Saturday morning (AEDT). The 26-year-old played the full 90 minutes in QPR’s 1-0 loss to Watford at Loftus Road, in a tight game where each side cou
When to watch your Caltex Socceroos this weekend
There's FA Cup action on the cards for two Australians this weekend as another prepares for a massive top-of-the-table encounter. Multiple players are involved in matches with major title ramifications, while Mark Milligan has a new manager to impress in Scotland. Read on t