Season seven kicked off with an epic episode featuring Ed Sheeran as a Lannister soldier.

Ed Sheeran next to Arya Stark (Maisie Williams). Helen Sloan/HBO

Sheeran's character was introduced while he was singing a song to a group of fellow Lannister soldiers. And not just any song, but a ballad straight from George R.R. Martin's "A Song of Ice and Fire."

In the books, a singer named Symon Silver Tongue tried to blackmail Tyrion Lannister by writing a ballad about his secret affair with Shae.

Here are the song lyrics, written about Tyrion and Shae:

He rode through the streets of the city,

Down from his hill on high,

O'er the wynds and the steps and the cobbles,

He rode to a woman's sigh.

For she was his secret treasure,

She was his shame and bliss.

And a chain and a keep are nothing,

Compared to a woman's kiss

For hands of gold are always cold

But a woman's hands are warm

Read more about the hidden meaning behind this song here.