Say what you will about Prince Harry, but don't say he doesn't champion gay rights.

Lance Corporal James Wharton says Prince Harry saved his life after fellow soldiers in the British army started harassing him after word slipped that he had had a romantic encounter with a fellow male soldier while training in Canada in 2008.

Wharton, who was serving under Harry at the time, spills all the details in his new book, 'Out In The Army: My Life as a Gay Soldier.'

Wharton writes that Harry rallied to his aid without a moment's hesitation:

Harry instantly looked concerned. I told him: ‘I think I’m about to be murdered by the infantry.’

I climbed into the turret and talked Harry through exactly what had happened. He had a complete look of bewilderment on his face.

I didn’t hold back: I told him everything that had gone on. I couldn’t stop the tears from welling up in my eyes. He said: ‘Right. I’m going to sort this [bleep] out once and for all.’

Harry climbed out of the tank and started having a go. I worried he was about to make the whole thing worse, but he wasn’t holding back. Prince Harry was sticking up for me and putting a stop to the trouble. I had been on track for a battering and had been rescued.

He came back ten minutes later and told me the problem had been ‘sorted’. He told me: ‘I knew one of his officers and we cleared everything up. I also told those other lads to back the [bleep] off, too."

Wharton has been an outspoken advocate on behalf of gay rights and even did an 'It Gets Better' video in 2009 to tell his story. Watch it below.