Updated

Moroccan authorities say four migrants have died and 34 have been rescued after their inflatable boat capsized between Morocco and Spain.

Moroccan state news agency MAP reported that Morocco's royal navy, police and emergency services retrieved the survivors and bodies Wednesday off the coast of the Mediterranean city of Al Hoceima.

The migrants were primarily from sub-Saharan Africa, and included five women, MAP said. An investigation has been opened into the attempted illegal migration attempt.

The rescue came the day after Spanish authorities rescued 64 migrants from two boats off the same coast. The International Organization for Migration says Spain received about 3,850 migrants via sea crossings and rescues in 2015.