Waves can only attack the bottom of a cliff. The shape of the cliff depends on the kind of rocks it's made from.
Strong rocks give upright cliffs, while weak rocks give sloping cliffs.
Layers of hard and soft rocks give cliffs that look like a natural staircase.