The waves carrying and depositing sand, pebbles and other material is called longshore ... which gets caught in sheltered areas or in vegetation and builds up into these mounds called dunes.