An ocean wave is an example of a longitudinal wave.
Light
Longitudinal waves are the type of waves in which the direction of the wave motion is parallel to the direction of oscillation of the particles. In case of ocean waves, the direction of wave propagation is perpendicular to the direction of motion of the particles. Thus, it is a transverse wave.