Küstengeschütz
Coastal defence (or defense) and coastal fortification are measures taken to provide protection against military attack at or near a coastline (or other shoreline), for example, fortifications and coastal artillery. Because an invading enemy normally requires a port or harbour to sustain operations, such defences are usually concentrated around such facilities, or places where such facilities could be constructed. Coastal artillery fortifications generally followed the development of land fortifications, usually incorporating land defences; sometimes separate land defence forts were built to protect coastal forts. Through the middle 19th century, coastal forts could be bastion forts, star forts, polygonal forts, or sea forts, the first three types often with detached gun batteries called "water batteries". Coastal defence weapons throughout history were heavy naval guns or weapons based on them, often supplemented by lighter weapons. In the late 19th century separate batteries of coastal artillery replaced forts in some countries; in some areas these became widely separated geographically through the mid-20th century as weapon ranges increased. The amount of landward defence provided began to vary by country from the late 19th century; by 1900 new US forts almost totally neglected these defences. Booms were also usually part of a protected harbor's defences. In the middle 19th century underwater minefields and later controlled mines were often used, or stored in peacetime to be available in wartime. With the rise of the submarine threat at the beginning of the 20th century, anti-submarine nets were used extensively, usually added to boom defences, with major warships often being equipped with them (to allow rapid deployment once the ship was anchored or moored) through early World War I. In World War I railway artillery emerged and soon became part of coastal artillery in some countries; with railway artillery in coast defence some type of revolving mount had to be provided to allow tracking of fast-moving targets.