Castles were built with strong defenses like moats, high walls, and towers to protect against attackers. They also had features like murder holes and machicolations that allowed defenders to drop objects on enemies below. Life in the Middle Ages was organized along feudal lines, with kings and lords ruling over peasants, serfs, knights, and other social classes in a hierarchical system. People learned trades and skills as pages, squires, and through guild membership.