Since ocean waves are one of the most powerful natural phenomena on Earth, they have a significant impact on the shape of the Earth’s coastlines. Generally, they straighten coastlines. Sometimes though, headlands composed of rocks resistant to erosion jut into the ocean and force waves to bend around them. When this happens, the wave’s energy is spread out over multiple areas and different sections of the coastline receive different amounts of energy and are thus shaped differently by waves.
For more details https://www.omicsonline.org/oceanography.php