Castles were often built on hills to make them more difficult to attack.