Ed Sheeran admits his track about an ex-girlfriend came about after she ditched him for his friend.

The 'Drunk' singer, who will release his second album 'x' in June, has written a track titled 'Don't' about a bad experience with a former lover, which he claims is ''100 per cent true''.

Ed told Billboard magazine: ''I could have gotten nastier ... there was more s**t that I didn't put in.

''I was seeing someone for a bit of time, and then they ended up physically involved with one of my friends in the same hotel that we were staying in, while I was downstairs. And I feel like, 'Treat people how you want to be treated'.''

The 23-year-old singer also revealed Justin Timberlake was ''pretty close to a direct inspiration'' for his new track 'Sing'.

He explained: ''I love Justified and FutureSex/LoveSounds, so I took inspiration from those.''

Talking about the follow-up to 2011's '+', he added: ''The last album was more young and dewy-eyed and innocent. I've still got very nice songs on this record. But some of them are bite-y.''