A group of onlookers formed a human chain to save a man from drowning in the choppy sea.
The clip shows the victim, wearing a beige-coloured top, being swept along the jagged coastline by the strong waves as dozens of people look on.
Several men try to help the victim from the lower rocks but are thwarted by the raging sea multiple times.
READ MORE: VIDEO: Horror moment dancer zapped to death at religious festival
One helper is nearly dragged into the swell but is saved at the last moment by his pals.
However, as the waves briefly subside, the brave helper leaps into the shallow water to grab the victim and help him onto a nearby rock.
A group of bystanders then form a human chain to lift the two men to safety as onlookers whistle and applaud.
The dramatic rescue took place in the city of Salé near Rabat in Morocco earlier this month.
After being rescued from certain doom, the victim was taken to a nearby hospital for medical care.
Footage of his rescue has been widely shared on social media.
One local commented: “Makes me proud of my country.”
Another said: “I’m happy to know no one got hurt.”

“That rescued man was trying to save a 12-year-old child who is still missing at the time of writing,” claimed someone else.
There have been no further updates on the rescued man’s current condition.
READ MORE: VIDEO: Air ambulance plane crashes and explodes in fireball killing all four onboard