A coastal fortification is a military construction built to defend a coast or a harbor from attacks from the sea. Coastal fortifications have been used throughout history, from ancient times to modern times, and have played an important role in many wars and conflicts.