A group of migrants attempting to travel from Ceuta to mainland Spain using a rubber dinghy were stopped by police before they could make the crossing.
The 25 men made a night-time dash across a dual carriageway running alongside the shore in the early hours of Sunday, which was captured on video.
The footage, taken from a nearby house, shows seven men dressed in dark clothing carrying an inflatable rib down to the shore. They are followed by others running behind them with an outboard motor, provisions and drums of diesel.
The men can be heard shouting: "Quick, quick."
An estimated 10,000 migrants remain stranded in Ceuta after a mass influx of around 80,000 people from Morocco overwhelmed the tiny Spanish exclave at the end of July.
The migrants have been held in detention centres while Madrid attempts to return them to their countries of origin.
However, the men failed to get beyond the shoreline before embarking on their planned 11-mile journey across the Strait of Gibraltar.
Spanish police said they had placed the property in the El Chorrillo neighbourhood where the men were staying under surveillance.
The migrants were arrested after running across a road and trying to launch their vessel - Solarpix
Officers moved in as soon as the group put the boat into the water.
Police said they had detained 15 men, including two suspected people smugglers.
The suspected traffickers, a Moroccan man and a Spanish minor, have been arrested and placed under investigation.
The other 13 men have been transferred to a detention centre pending deportation.
Police said the arrests formed part of a wider investigation into people smuggling launched after thousands of migrants swam into the tiny enclave from Morocco on July 30 and 31.
Smugglers charged migrants €15 (£13) a day for accommodation and €6,500 (£5,600) for the clandestine crossing to mainland Spain, police said.
The fate of the seven-square-mile peninsula on the North African coast has become a central issue in Spain's election campaign, with the country set to go to the polls on Sunday.
Pedro Sánchez, the Spanish prime minister, has said Moroccan authorities played no part in orchestrating the mass border crossing, instead blaming Russian and Israeli disinformation.
However, a police report published this month found that those who made the crossing had used around 8,000 identical inflatable rubber rings.
Police said there was no way the migrants could have purchased so many rings on the Moroccan side of the border, suggesting that the mass incursion had been coordinated.
Since July, migrants have been living in detention centres and makeshift shanty towns.
Residents of the enclave, which has a population of around 80,000, have regularly taken to the streets in protest, with some saying they are afraid to go out at night.
Try full access to The Telegraph free today. Unlock their award-winning website and essential news app, plus useful tools and expert guides for your money, health and holidays.