[custom_adv] Bouhaddouz put the ball into his own net with a diving header at the near post in the 95th minute as Morocco defended a left-wing free-kick. [custom_adv] The result was harsh on the African side, who had wasted numerous chances in the first half and were denied late on when Iran goalkeeper Alireza Beiranvand produced a fine save from Hakim Ziyech. [custom_adv] But Iran took the victory, only their second in World Cup history after a 2-1 win over the United States at France 1998. [custom_adv] Morocco became the second African side to concede a late winning goal in the World Cup on Friday, after Egypt lost 1-0 to Uruguay in Group A, thanks to a last-minute header from Jose Gimenez. [custom_adv] Both Morocco and Iran impressed in qualifying with Morocco only conceding one goal in their eight games, while Iran remained unbeaten and only let in five goals in their 18 qualifying matches. [custom_adv] However, they were both left rueing the draw that saw them placed in the same group as 2010 winners Spain and European champions Portugal, with only the top two sides advancing to the last 16. [custom_adv] Spain and Portugal, 10th and fourth in the world rankings respectively, have won four major tournaments between them in the past 10 years. Before the match, Iran's coach Carlos Queiroz said his side had been "drawn in the hardest group in the World Cup". [custom_adv] Going into injury time in St Petersburg, it looked like being a result neither Morocco or Iran wanted, before Morocco's Sofyan Amrabat conceded a needless free-kick by fouling Saman Ghoddos near the corner flag. [custom_adv] But that gave Ehsan Haji Safi the opportunity to whip in the free-kick, and Bouhaddouz could only steer the ball into his own net for an unlikely Iran victory. [custom_adv] It was a hard result for Morocco, which played the more enterprising, offensive minded game. The team had several chances that fell short during the contest, but at least looked like getting a point, until the terrible finish. [custom_adv] While Morocco occasionally threatened to score, Iran failed to trouble the goal much at all, taking many of their shots from 40 yards or more and unsurprisingly failing to convert them. [custom_adv] "In the first half we started to jump out and the most open opportunities belonged to Iran and we were able to create panic in their defence and then the game changed. [custom_adv] "We knew they had a very strong and powerful way they start the games but our strategy was from the first minute to create a mental collapse in the Morocco players and we tried to do that by creating frustration and blocking the playmakers.