Coastal defense refers to the military measures taken to protect a coastline from attack by sea. It typically involves the use of fortifications, naval vessels, and aircraft.