A medieval castle was a self-sustaining miniature city comprising several essential buildings for defense, administration, and daily life. At its heart was the Keep (or Donjon), a massive fortified tower that served as the final refuge and the lord's residence. Surrounding this was the Great Hall, the social hub used for banquets, legal trials, and high-status sleeping quarters. The Bailey (or Ward) was the open courtyard that housed functional structures like the Kitchens (often separate to prevent fires), the Stables for horses, and the Blacksmith Forge for repairing weapons and tools. Spiritual life centered on the Chapel, which was present in almost every noble castle. Defensively, the Gatehouse and Barbican guarded the entrance, while Curtain Walls and Towers provided vantage points for archers to protect the entire complex from siege.