A castle is the fortified home of a feudal lord
A castle is a fortified structure that nobles built during the Middle Ages. Unlike a public fortress that protects an entire town, a castle is both a military stronghold and the private home of a lord or king. Lords used these buildings to control the land around them and to protect themselves during war.
European nobles began to build castles in the 9th and 10th centuries after the fall of the Carolingian Empire, whose territory was divided among individual lords and princes. When the central government collapsed, local lords took control of the divided land. Each lord needed a safe base to live in, govern his territory, and defend his property from rival nobles.
Earlier fortifications, such as Roman castra (military camps) or walled towns, were built to protect soldiers or the general public. A castle is different because it combines two functions in one building:
1. Residence: It contains bedrooms, a great hall for meals and meetings, and a chapel for the lord, his family, and his servants.
2. Stronghold: It has thick walls and towers so a small group of soldiers can hold off a much larger attacking army.
In medieval warfare, armies rarely fought large battles in open fields. Instead, war was mostly about taking and holding castles. A castle served as a secure base for attacks. Horsemen could ride out from the castle to raid an enemy's land, or to attack the supply lines of an invading army, and then retreat safely behind the castle walls. Because of this, an invader could not safely ignore a castle and march past it. To conquer a region, an army first had to capture its castles.
Fact-checked against Castle on Wikipedia
Part of the War syllabus: Medieval Warfare
See it on the timeline of Medieval Warfare