Coastal defense is the defense of a coastline from attack by sea.