Castles were usually built in areas that served an integral role in territorial defense. They were often built as forts for the soldiers, homes for the kings, and often as centers of administration for the surrounding land and its people. Many castles change roles over time based on the current needs of the population and those who dwell within them.