WARNING: The following article contains spoilers for the finale of Game of Thrones, "The Iron Throne."

One of the more intriguing character arcs in HBO's Game of Thrones is that of Jaime Lannister, who went from the reviled Kingslayer who was willing in the pilot to murder a child to someone willing to risk his life for someone he genuinely cares about, and for the Seven Kingdoms.

RELATED: Game of Thrones' Biggest Unanswered Questions

However, even after a fleeting romance with Brienne of Tarth, Jaime crawled back to his sister Cersei, only to die when Daenerys Targaryen razed King's Landing. While many saw that as a sign of weakness,and his inability to sever his ties with Cersei, despite knowing she's a monster, Brienne makes it clear in the finale that, Jaime remained a virtuous knight at the end.

Jaime Lannister and Brienne of Tarth on Game of Thrones

Jaime has always been a lost soul, unable to break free of Cersei. They've had three children together, with a fourth that will never be born, which may go a long way to explain by Jaime could never completely turn his back on Cersei. However, it appeared in this final season that, by forsaking his sister and joining in the fight in the North against the Night King, Jaime had fully become a Lannister Lion. But, after knighting Brienne, fighting alongside her, and then expressing his love for her, he returned to his sister's side for the final battle, if only in an attempt to save her.

Yet in the end, Brienne acknowledges that, whatever flaws Jaime Lannister had, the performance of his duty to the Seven Kingdoms is what mattered. As the finale winds down, Brienne completes Jaime's entry in The Book of Brothers, which contains the dead of every knight who's ever served in the Kingsguard. Jaime's biography was a bit light following his killing of King Aerys, which earned the knight the name Kingslayer.

Earlier in the series, Joffrey even mocked Jaime about The Book of Brothers lacking any heroic endeavors from him -- and to be fair, Jaime showed no interest in it. Deep down, however, we knew it ate at Jaime. Following his death, Brienne takes it upon herself to ensure his actions are the stuff of legend.

She writes about him trying to make amends with the Starks by returning their daughters, Sansa and Arya, as well as how he lost his hand defending her. The crowning points come when she notes how he broke Cersei's code and defended the realm at Winterfell. Most importantly, Brienne's not bitter or resentful, as she concludes the tale with him returning to the sacking of King's Landing where he "died defending his queen."

RELATED: Game of Thrones: Drogon May Have Been the Smartest Character

It's a testament to her compassion and empathy -- tenets which have always been present in their relationship. She opts to let the free world of Westeros remember Jaime as a man, a knight and a hero ready to sacrifice everything for the ones he loved. Brienne gives him a happy ending, and she holds her head high as she closes the book, because she understands the tragedy he went through in life shouldn't diminish his worth as a warrior. She sings his praises go the high heavens so that all readers would know Jaime was more than a Kingslayer via this tribute which reiterates just how much she still loved him even at the end of the road.

Game of Thrones stars Peter Dinklage as Tyrion Lannister, Nikolaj Coster-Waldau as Jaime Lannister, Lena Headey as Cersei Lannister, Emilia Clarke as Daenerys Targaryen, Sophie Turner as Sansa Stark, Maisie Williams as Arya Stark and Kit Harington as Jon Snow.