A crane had to be used to rescue two boys trapped in a cove along Sunset Cliffs in Ocean Beach.
The children were skipping class and became stranded on a small beach surrounded by water near Osprey Street, according to San Diego Fire officials.
NBC 7 aerial footage shows a rescuer in a harness being lowered down onto the small beach by a crane.
Lifeguards quickly called in the crane to reach over the cliffs and into the water to make the rescue.
The two who were rescued shortly after 11 a.m.
Four of the students were detained and taken back to school, officials said.