In medieval times, castles were home to nobility or high-ranking clerics, defense forces and a large household staff. In times of warfare, the population of the castle would swell as peasants from the lord's domain flooded in for protection.
Apart from the lord, lady or bishop, the most important figure in castle life was the constable. This man was in charge of the day-to-day running of the castle affairs. He coordinated the activities of the domestic staff, which included cooks, grooms, porters and scullions, as they prepared the castle's living areas. He also maintained the castle's defenses, organizing the garrison in the castle, which usually included knights, archers and men-at-arms. Castles also had blacksmiths and engineers to make weapons.