During the Middle Ages, people lived in castles or near castles. Nobles and knights helped the king who ruled from the castle. Artisans and peasants lived near the castle and worked the lands of the nobles and king. Artisans had occupations like woodworking, baking, shoemaking. Peasants worked in the fields. Knights fought in wars to gain lands for nobles and the king.