The Gate. The entrance was often the weakest part in a castle. To overcome this, the gatehouse was developed, allowing those inside the castle to control the flow of traffic. Gatehouses were inside the wall and connected with the bridge over the moat, but they were more than just doorways.