Ed Sheeran has appeared in a cameo role in Game Of Thrones in the first episode of the penultimate series.

He sang during his brief appearance in the episode called Dragonstone, which began season seven when it was broadcast in the early hours of Monday.

Sheeran, 26, was dressed as a soldier and sang around a campfire when he caught the attention of Maisie Williams’ Arya Stark as she rode through a forest on horseback.

Stark said to Sheeran’s unnamed character: It’s a pretty song, I’ve never heard it before.

Sheeran replied: It’s a new one.

He celebrated his appearance, posting a shot of his performance on Instagram after tuning into the show.

He wrote: Throwback to the time I was a Lannister.

Sheeran was showered in plaudits on social media.

Nadine tweeted: How awesome is @edsheeran in that scene with Arya Stark?

Lyndsey Vanstone added: Amazing cameo from @edsheeran in @GameOfThrones season 7 premiere!

Show creators David Benioff and DB Weiss announced the singer-songwriter would make an appearance as they spoke at a panel at the South By Southwest Festival in Austin, Texas.

The HBO series, which is based on George RR Martin’s A Song Of Ice And Fire novels, will come to its conclusion in the final season next year.

The show boasts 38 Emmy Awards, more than any other narrative show.

Game Of Thrones first aired on Sky Atlantic and Now TV at 2am and will be repeated later.

(c) Sky News 2017: Ed Sheeran sings in Game Of Thrones cameo appearance