A castle is a fortified structure, often built in the Middle Ages, used for defense and as a noble residence.