Chivalry was disciplined by a code of conduct that was clearly understood, although, it
was never clearly formulated. Knights have twelve chivalric virtues: faith, charity, justice, sagacity, prudence, temperance, resolution, truth, liberality, diligence, hope, and valour. In the code, a knight is expected to respect women, uphold the church, face equal challenges, never accept a reward, serve the King, protect the weak or the helpless, and to at all times hold the truth. Sir Gawain was one of the knights of King Arthur's round table that had his chivalry tested through a quest. His quest tested his chivalry through it all. He lives up to the code, but he ends up failing it as well.
Sir Gawain lives up to the code by honoring it throughout his journey. He proves bravery and loyalty to King Arthur, humility when accepting the Green Knight's challenge, and respects for women. The Knight offered them a challenge, which was to cut off his head and then head to the Green castle and get their head cut off by the Knight. King Arthur first accepts the challenge, but Gawain realising that his king is too valuable to the kingdom, decides to take his place and ends up cutting off the Green Knight's head. After he cuts his head, he heads to finish the rest of the task, to go to the Green Chapel and get his head cut off. Throughout his journey, he stops at a castle where the queen tries to get him to sleep with her. He refuses to sleep with her and only accepts the kisses she gives him; he, at the end of the day, gives them the King of the castle.
Gawain fails the code with dishone...