Coastal defense refers to the protection of a coastline from attack by sea.