According to images reported by Spanish media, Spanish army units deployed on the beaches of the Ceuta enclave in North Africa on Tuesday to prevent a mass influx of migrants from Moroccan territory.
In an interview with Cadena Sul, Ceuta president Juan Jess Vivas said, "At the moment, the entry of migrants appears to be under control."
Hundreds of people gathered on the Moroccan side of the border, according to images and videos circulated in the media.
Between Sunday and Monday, at least 6,000 people managed to cross the border, an unprecedented amount.
According to Vivas, the migrants crossed due to Moroccan authorities' "passiveness."
Spain and Morocco maintain collaborative relations, according to Spanish interior minister Fernando Grande-Marlaska on public television RTVE.
He added that about 1,500 people had already been sent back.
Spain recently accepted Brahim Ghali, the chief of the Polisario Front, who is currently hospitalized in Logroo due to his health problems, for "humanitarian reasons." Ghali is considered an "enemy" by Morocco.
The Spanish government has officially ruled out any connection between Ceuta's migration situation and Ghali's arrival on Spanish soil.