Longshore drift is the movement of sediment along the beach by waves.
The swash moves up the beach at the angle determined by the direction of the prevailing wind.
After the wave has broken, the backwash returns to the sea at a 90 degree angle.
In this way, sand and pebbles are moved along the beach.
The sand and pebbles will build up against a groyne.