Waves can approach the coast at an angle because of the direction of the prevailing wind. The swash of the waves carries material up the beach at an angle. The backwash then flows back to the sea in a straight line at 90 degrees. This movement of material is called transportation.
Continual swash and backwash transports material sideways along the coast. This movement of material is called longshore drift and occurs in a zigzag