The castle served as a way to defend their land and fight off attackers. Castles were usually built where there was a natural feature of the land that would help in the defense of the castle such as building on top of a hill or where they were surrounded by water.