The "code of chivalry" is thus a product of the Late Middle Ages, evolving after the end of the crusades partly from an idealization of the historical knights fighting in the Holy Land and from ideals of courtly love.