the waves nears the coastline
the base of the wave is in contact with the sea bed and friction slows it down
the crest of the wave breaks because it is moving faster then the base
the energy of the breaking wave pushes it up the beach as swash
when all the energy is used up it runs back down the beach as backwash