Coastal defence and fortification  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. In littoral warfare, coastal defence counteracts naval offence, such as naval artillery, naval infantry (marines), or both. Rather than the beach assault of modern amphibious operations, seaborne assaults of the classical and medieval age more often took the form of raiders sailing up river and landing well inland of the coast. Prior to the invention of naval artillery that could sink hostile ships, the most that coastal defence could do was act as an early warning system, that could alert local naval or ground forces of the impending attack. For example, in the late Roman period the Saxon Shore was a system of forts at the mouths of navigable rivers, and watch towers along the coast of Britannia and Gaul.