The Asian champion, which suffered a surprisingly hefty 5-1 opening defeat against Spain on the opening matchday, belatedly found form, the-afc.com reported.
After a slow start from both teams, Iran moved to a three-goal lead and it held a handy 4-2 margin at the break.
The match found its intensity and as the fouls mounted Morocco’s Mohamed Jaoud who, having scored the North Africans’ first goal, was sent for a stint on the sidelines and Iran added two goals in quick succession.
The second half was a more controlled affair and Morocco, fighting for its Futsal World Cup life, pushed Iran hard in the second period.
Iran scores soon after the break and much of the remainder of the half saw Morocco in the ascendency leaving its opponent happy to counterattack.
Morocco again drew within two goals of its rival as captain Adil Habil netted his second of the night but it was to prove a bridge too far.
Iran will look to lock up passage to the Round of 16 on Sunday (local time) when it tackles enigmatic debutant Azerbaijan.
Hossein Tayebi (9'49")
Mahdi Javid (14'54")
Ali Hassan-Zadeh (16'00", 23'40")
Farhad Tavakoli (17'03("