Spain will deploy its military to Ceuta to help restore order at its border with Morocco after local authorities in Ceuta had asked the central government in Madrid for reinforcements.

Thousands of migrants streamed across from Morocco into the tiny Spanish territory of Ceuta on Thursday.

Spain said Thursday it would send troops to its north African exclave of Ceuta to ensure security after hundreds of migrants arrived, some swimming by sea