An undertow is a current flowing beneath the ocean's surface current, usually in a different direction. The current that runs back out to sea beneath a crashing wave is an example of an undertow.
By the way, undertows should not be confused with rip currents, which are stronger surface currents that extend farther from shore.
---D.M.