The migrant rush in Melilla came after Madrid and Rabat normalised their diplomatic relations following an almost year-long crisis centred on the disputed Western Sahara territory.
For Spain, the main objective of the diplomatic thaw was to ensure Morocco's cooperation in controlling illegal immigration.