06/10/2013 04:55 EDT | Updated 06/12/2013 01:53 EDT

Prince Harry Defended Gay Soldier On Alberta Military Base

A former soldier alongside Prince Harry has revealed how the red-headed royal came to his aid when he was the target of a homophobic act in Alberta back in 2008.

According to a story this weekend in the Daily Mail, Prince Harry intervened when Lance-Cpl. James Wharton was physically confronted by six fellow troops - threatening to beat him up for being gay.

Wharton, author of the memoir "Out In The Army: My Life as a Gay Soldier," turned to the Prince with his tale, saying he thought he was going to be "murdered by the infantry."

“I will always be grateful to Harry and I will never forget what happened. Until he went over and dealt with everything, I was on track for a battering,” Wharton told the Daily Mail.

Story continues below the slideshow

Flirting With Prince Harry...

Harry, who was Wharton's tank commander at the time, approached the gang of bullies, telling them to back off or face severe discipline.

"I knew one of [the] officers and we cleared everything up. I also told those other lads to back the f**k off, too," Wharton recounts Harry as saying.

Prince Harry is known for having a good relationship with the gay community, and has partied with friends at gay bars in the past.

Wharton and Harry's unit, the elite Blues and Royals regiment of the British army's Household Calvary, was on exercise at CFB Suffield near Medicine Hat in 2008.

CFB Suffield is the largest Canadian Forces Base and the largest Commonwealth military training facility in the world.

Prince Harry has pulled two stints at the Alberta base - in 2007 and 2008. His stay in 2007 resulted in worldwide headlines after he spent a wild night at Calgary's infamous Cowboy's bar.