Marine processes shape coastlines through erosion and deposition. Destructive waves have high energy and erode the land, while constructive waves have low energy and help build the coastline by transporting and depositing material. The action of swash and backwash breaks rocks down through hydraulic action and abrasion, further eroding them into sand, gravel or pebbles through attrition. Beaches form as eroded material is transported and deposited along the coast, appearing as berms that can trap water and form lagoons. Cliffs at headlands are eroded by destructive waves, retreating inland over time and leaving behind wave-cut platforms.