Why does deposition occur?
When the sediment load exceeds the ability of the water or wind to carry it. This can be because sediment load increases eg. landslide.
Or because wind / water flows slow down:
1) Friction increases- If waves enter shallow water or wind reaches land, friction between the water/wind and ground surface increases, which slows down water or wind.
2) Flow becomes turbulent - If water or wind encounters an obstacle eg. area of vegetation or a current moving in the opposite direction) flow becomes rougher and overall speed decreases.
3) If wind drops, wave height, speed and energy will decrease as well.