How Castles Work