It was down to the last minute, but Iran took the lead from Morocco in a 1-0 goal.
Iran beat Morocco 1-0 in a match that was down to the wire.
Both sides had strong defensive records going into the World Cup and couldn't be separated.
Noureddine Amrabat crossed the ball into Amine Harit but his volley went wide over the bar.
Tackles were flying from both sides, competing in a physical encounter. Jahanbaksh was booked for a stamp.
Amrabat was substituted by Morocco for a head injury. As a precaution, he was replaced by younger brother Sofyan.
Hakim Ziyach forced a save out of Alireza Beiranvand as Younes Belhanda headed the ball to him and he hit a half-volley at goal.
Moroccan hearts were broken as Aziz Bouhddouz headed into his own net after Haji Safi put in the free-kick to give Iran the victory.
It was a frustrating second half for both sides. Fatigue and a number of stoppages meant that the intensity of the second half didn't match the first.