The purpose of chivalry is to uphold the principles of honor, courage, justice, and loyalty, often in a heroic and valiant manner. It's a code of conduct that emphasizes the importance of fighting for what is right, even when it is difficult or unpopular.