How Ed Sheeran Wrote His Hobbit Song

    The Hobbit, Ed Sheeran Warner Bros. Pictures; WireImage

    Ed Sheeran is just 22 years old but he's had quite an impressive career already.

    Not only has he written songs for One Direction, sung and toured with Taylor Swift and performed with Elton John at the Grammys, but also he won two Brit Awards last year for Best British Male and British Breakthrough.

    But it's Sheeran's most recent work that has impressed his family and friends the most. His new song "I See Fire" is featured during the end credits of The Hobbit: The Desolation of Smaug.

    "After all the cool stuff that has happened in my career, this is the one thing that people are actually excited about," Sheeran told me at the movie's Hollywood premiere. "It's cool. Just the franchise that [director Peter Jackson] has built up with it has such respect but also the films are fantastic and I'm just a big geek with it."

    VIDEO: Ed talks about Thanksgiving with Jennifer Aniston

    Elton John, Ed Sheeran, Grammys, Performance Kevin Winter/Getty Images

    So how did his Hobbit song come about?

    "I did a gig in New Zealand in March and [Jackson's daughter] came to the gig and then Peter invited us around for lunch the next day and we swapped emails," Sheeran said. "Then I was in Ibiza about a month ago and I got an email from Peter saying, 'Do you want to do this song?' Then I flew over two days later to New Zealand and did it."

    He and his manager first watched the movie early in the morning. "Then I went into the studio at 11 o'clock…and the song was done by six," Sheeran said. "It was a quick, very quick, process."

    Ed Sheeran Courtesy: Bryan Bedder/Getty Images

    PHOTOS: Get a first look at The Hobbit: The Desolation of Smaug