An ocean wave moving through water is an example of a mechanical wave
A longitudinal wave is a type of mechanical wave.
A transverse wave is a type of mechanical wave
Mechanical waves can't pass through vacuum like electromagnetic waves because t depends on the transfer of energy between particles of matter (matter that has inertia and elasticity). This energy propagates in the same direction as the wave. Another example of mechanical energy is sound. In addition to longitudinal and transverse waves, another type of mechanical wave is surface waves.