Untrained entrances on sandy coasts tend to move widely and violently to discharge into the ocean, often upsetting those enjoying land nearby.
With many cities (and buildings) constructed close to rivers, such management has historically been considered a necessary course of action, even though ecologically, non-intervention would be better and more sustainable.
[1] A trained entrance often consists of rock walls that force the water into a deeper more stable channel.
Trained entrances can provide better navigation, water quality and flood mitigation services, but can also cause beach erosion due to their interruption of longshore drift.
One solution is the installation of a sand bypass system across the trained entrance.