Castillos medievales were fortified structures built during the Middle Ages across Europe. They served as defensive structures to protect towns and villages from invaders and attackers. These castles featured thick stone walls, towers, and fortifications to provide shelter and security for the local population during times of conflict.