Morocco severed ties with Iran in May 2018 due to its alleged links with the Polisario Front, a breakaway group seeking independence in Western Sahara.

Trump Allegedly Wants Morocco’s Support Against Iran
US President Donald Trump and his wife Melania Trump with Moroccan Foreign Affairs Minister Nasser Bourita