Fortification
Nomenclature: Many United States Army installations are known as forts, although they are not always fortified. During the pioneering era of North America, many outposts on the frontiers, even non-military outposts, were referred to generically as forts. Larger military installations may be called fortresses; smaller ones were once known as fortalices. The word fortification can refer to the practice of improving an area's defense with defensive works. City walls are fortifications but are not necessarily called fortresses.
The art of setting out a military camp or constructing a fortification traditionally has been called castrametation since the time of the Roman legions. Laying siege to a fortification and of destroying it is commonly called siegecraft or siege warfare and is formally known as poliorcetics. In some texts, this latter term also applies to the art of building a fortification.
Fortification is usually divided into two branches: permanent fortification and field fortification. Permanent fortifications are erected at leisure, with all the resources that a state can supply of constructive and mechanical skill, and are built of enduring materials. Field fortifications—for example breastworks—and often known as fieldworks or earthworks, are extemporized by troops in the field, perhaps assisted by such local labour and tools as may be procurable and with materials that do not require much preparation, such as soil, brushwood, and light timber, or sandbags (see sangar). An example of field fortification was the construction of Fort Necessity by George Washington in 1754.
There is also an intermediate branch known as semi-permanent fortification. This is employed when in the course of a campaign it becomes desirable to protect some locality with the best imitation of permanent defences that can be made in a short time, ample resources and skilled civilian labour being available. An example of this is the construction of Roman forts in England and in other Roman territories where camps were set up with the intention of staying for some time, but not permanently.
Castles are fortifications which are regarded as being distinct from the generic fort or fortress in that it describes a residence of a monarch or noble and commands a specific defensive territory. An example of this is the massive medieval castle of Carcassonne.

History: 

Neolithic Europe: From very early history to modern times, walls have been a necessity for many cities. Amnya Fort in western Siberia has been described by archaeologists as one of the oldest known fortified settlements, as well as the northernmost Stone Age fort. In Bulgaria, near the town of Provadia a walled fortified settlement today called Solnitsata starting from 4700 BC had a diameter of about 300 feet (91 m), was home to 350 people living in two-storey houses, and was encircled by a fortified wall. The huge walls around the settlement, which were built very tall and with stone blocks which are 6 feet (1.8 m) high and 4.5 feet (1.4 m) thick, make it one of the earliest walled settlements in Europe but it is younger than the walled town of Sesklo in Greece from 6800 BC.
Uruk in ancient Sumer (Mesopotamia) is one of the world's oldest known walled cities. The Ancient Egyptians also built fortresses on the frontiers of the Nile Valley to protect against invaders from neighbouring territories, as well as circle-shaped mud brick walls around their cities. Many of the fortifications of the ancient world were built with mud brick, often leaving them no more than mounds of dirt for today's archaeologists. A massive prehistoric stone wall surrounded the ancient temple of Ness of Brodgar 3200 BC in Scotland. Named the "Great Wall of Brodgar" it was 4 metres (13 ft) thick and 4 metres tall. The wall had some symbolic or ritualistic function. The Assyrians deployed large labour forces to build new palaces, temples and defensive walls.

Bronze Age Europe: In Bronze Age Malta, some settlements also began to be fortified. The most notable surviving example is Borġ in-Nadur, where a bastion built in around 1500 BC was found. Exceptions were few—notably, ancient Sparta and ancient Rome did not have walls for a long time, choosing to rely on their militaries for defence instead. Initially, these fortifications were simple constructions of wood and earth, which were later replaced by mixed constructions of stones piled on top of each other without mortar. In ancient Greece, large stone walls had been built in Mycenaean Greece, such as the ancient site of Mycenae (famous for the huge stone blocks of its 'cyclopean' walls). In classical era Greece, the city of Athens built two parallel stone walls, called the Long Walls, that reached their fortified seaport at Piraeus a few miles away.
In Central Europe, the Celts built large fortified settlements known as oppida, whose walls seem partially influenced by those built in the Mediterranean. The fortifications were continuously being expanded and improved. Around 600 BC, in Heuneburg, Germany, forts were constructed with a limestone foundation supported by a mudbrick wall approximately 4 metres tall, probably topped by a roofed walkway, thus reaching a total height of 6 metres. The wall was clad with lime plaster, regularly renewed. Towers protruded outwards from it.

The Oppidum of Manching (German: Oppidum von Manching) was a large Celtic proto-urban or city-like settlement at modern-day Manching (near Ingolstadt), Bavaria (Germany). The settlement was founded in the 3rd century BC and existed until c. 50–30 BC. It reached its largest extent during the late La Tène period (late 2nd century BC), when it had a size of 380 hectares. At that time, 5,000 to 10,000 people lived within its 7.2 km long walls. The oppidum of Bibracte is another example of a Gaulish fortified settlement.

Bronze and Iron Age Near East: The term casemate wall is used in the archaeology of Israel and the wider Near East, having the meaning of a double wall protecting a city or fortress, with transverse walls separating the space between the walls into chambers. These could be used as such, for storage or residential purposes, or could be filled with soil and rocks during siege in order to raise the resistance of the outer wall against battering rams. Originally thought to have been introduced to the region by the Hittites, this has been disproved by the discovery of examples predating their arrival, the earliest being at Ti'inik (Taanach) where such a wall has been dated to the 16th century BC. Casemate walls became a common type of fortification in the Southern Levant between the Middle Bronze Age (MB) and Iron Age II, being more numerous during the Iron Age and peaking in Iron Age II (10th–6th century BC). However, the construction of casemate walls had begun to be replaced by sturdier solid walls by the 9th century BC, probably due the development of more effective battering rams by the Neo-Assyrian Empire. Casemate walls could surround an entire settlement, but most only protected part of it. The three different types included freestanding casemate walls, then integrated ones where the inner wall was part of the outer buildings of the settlement, and finally filled casemate walls, where the rooms between the walls were filled with soil right away, allowing for a quick, but nevertheless stable construction of particularly high walls.

Ancient Rome: The Romans fortified their cities with massive, mortar-bound stone walls. The most famous of these are the largely extant Aurelian Walls of Rome and the Theodosian Walls of Constantinople, together with partial remains elsewhere. These are mostly city gates, like the Porta Nigra in Trier or Newport Arch in Lincoln. 
Hadrian's Wall was built by the Roman Empire across the width of what is now northern England following a visit by Roman Emperor Hadrian (AD 76–138) in AD 122.

Indian subcontinent: A number of forts dating from the Later Stone Age to the British Raj are found in the mainland Indian subcontinent (modern day India, Pakistan, Bangladesh and Nepal). "Fort" is the word used in India for all old fortifications. Numerous Indus Valley Civilization sites exhibit evidence of fortifications. By about 3500 BC, hundreds of small farming villages dotted the Indus floodplain. Many of these settlements had fortifications and planned streets. The stone and mud brick houses of Kot Diji were clustered behind massive stone flood dykes and defensive walls, for neighbouring communities bickered constantly about the control of prime agricultural land. The fortification varies by site. While  Dholavira has stone-built fortification walls, Harrapa is fortified using baked bricks; sites such as Kalibangan exhibit mudbrick fortifications with bastions and Lothal has a quadrangular fortified layout. Evidence also suggested of fortifications in Mohenjo-daro. Even a small town—for instance, Kotada Bhadli, exhibiting sophisticated fortification-like bastions—shows that nearly all major and minor towns of the Indus Valley Civilization were fortified.