Ocean wave is an example of a longitudinal wave.
Light
Longitudinal waves are the type of waves in which the particles vibrate along the direction of propagation of wave. Transverse waves are those in which the particles vibrate perpendicular to the direction of propagation of wave. In case of ocean waves, the particles vibrate perpendicular to the direction of propagation of wave, so it is a transverse wave.