Morocco said on Thursday it was resuming contacts with European Union institutions after the bloc's senior diplomat promised to resolve a crisis triggered by a European court ruling on a trade deal.

Morocco said last month it had suspended contact with European Union after the court invalidated an EU farm trade accord with Rabat, saying it should exclude the disputed territory of Western Sahara.

E.U. Foreign Policy Chief Federica Mogherini made an unplanned visit to Rabat earlier this month and said the bloc disagreed with the court ruling. (Reporting by Aziz El Yaakoubi; Editing Patrick Markey and Andrew Heavens)