Coastal defense refers to the protection of a coastline from attack by sea. It typically involves the use of fortifications, naval forces, and other military assets.