During the Middle Ages in Europe, a code of chivalry developed for knights as mounted combat on horseback became important. This code emphasized courage in battle, loyalty to lords, and the protection of the weak. It also promoted romantic love for noblewomen and placed them on a pedestal. Over time, literature further popularized and idealized the ideals of knighthood, chivalry, and courtly love.