A rip current forms when part of a longshore current is drawn away from the coast – perpendicular to the beach.
Courtesy of NOAA