Gawain is tested while staying at Bercilak's castle to determine his character when faced with temptation. He fails part of the test by accepting the green girdle from Lady Bercilak, though he eventually confesses. Through this experience, Gawain learns of his own weaknesses and flaws as a human being, despite his reputation of being faultless.