Each castle had gates, often with a metal barrier called a portcullis and with doors made of a very strong wood. And sometimes they had a moat, which is a ditch filled with water to stop people ...