Castles were common in Europe during the Middle Ages and were often the homes of royal families or other powerful people. The main purpose of castles was to protect the people who lived there from invasions. They were also a status symbol to show other people how important a family was.