It protected the keep and the bailey from attack. There were only a few doors in the walls around the castle, and they were usually very tall so that attackers couldn't climb over them! The motte was a mound of dirt that the castle sat on. It made it harder for people to attack and was also great as a look-out point.