Seven Moroccan migrants were found dead off Morocco’s Atlantic coast near Casablanca after their boat capsized, the interior ministry said.
Three others were taken unconscious to hospital, while search operations are ongoing, the ministry said in a statement.
The incident reflects a growing trend in illegal migration to Spain from the Atlantic coast following a government crackdown on Mediterranean routes.
Morocco is 14 kilometres south of the Spanish coast at the strait of Gibraltar and shares land borders with Spanish enclaves Melilla and Ceuta on its Mediterranean coast.
Moroccan authorities stopped 57 000 migrants from illegally crossing to Spain between January and September.
Figures released by the International Organisation for Migration show arrivals to Spain by sea more than halved to 16 894 from January to September, compared with 34 238 in the same period last year.
The Spanish government last month approved 32.2 million euros (£28.66 million) aid to Morocco to combat illegal migration. The European Union promised 140 million euros in border management aid.