Respuesta :
castles were primarily built during the wars of the late middle ages for the purpose of protection.
For protection and to keep royalty inside while others would remain out. The original design of castle featured large walls made of stones and mud which was a major development at the time.