CYPRESS, TX - FEBRUARY 25: Trinity junior Mack Beggs is named the winner of the 6A Girls 110 Weight Class championship match in the Texas Wrestling State Tournament on February 25, 2107 at Berry Center in Cypress, Texas. (Photo by Leslie Plaza Johnson/Icon Sportswire) (Icon Sportswire via AP Images)
Mack Beggs won the female competition (Picture: AP)

A transgender wrestler was booed after he won a female competition he didn’t actually want to participate in.

Mack Beggs, 17, who is transitioning from female to male, had wanted to compete against other boys in the Texas state championship.

Man uses toilet roll to write resignation letter for job he hated

But officials refused to allow it because state sport regulations require athletes to wrestle according to their gender at birth.

Despite this Beggs was booed by people who thought he had an unfair advantage when taking on girls because he was taking drugs that increased his testosterone.

This had led to a parent of a girl trying to block him competing by filing a lawsuit.

MORE: Jeremy Corbyn confirms he will lead Labour in 2020 during testy interview

In this Feb. 18, 2017 photo, Euless Trinity's Mack Beggs, left, wrestles Grand Prairie's Kailyn Clay during the finals of the UIL Region 2-6A wrestling tournament at Allen High School in Allen, Texas. Beggs, who is transgender, is transitioning from female to male, won the girls regional championship after a female opponent forfeited the match. (Nathan Hunsinger/The Dallas Morning News via AP)
Beggs, left, wrestles Grand Prairie’s Kailyn Clay during the regional finals (Picture: AP)

But it didn’t work and Beggs beat Chelsea Sanchez 12-2 on Saturday to win gold at the Texas girls state championship in the 110-weight class.

‘That’s honestly what the spotlight should’ve been on, my teammates,’ he said after he won.

‘The hard work that I put in the practice room with them beside me … that’s what the spotlight should have been on … because I would not be here without them.’

MORE: Hollywood stars pay tribute after Titanic star Bill Paxton dies aged 61

CYPRESS, TX - FEBRUARY 25: Trinity junior Mack Beggs had a nose bleed that could not be contained by his nose plug in the final round of the 6A Girls 110 Weight Class match during the Texas Wrestling State Tournament on February 25, 2017 at Berry Center in Cypress, Texas. (Photo by Leslie Plaza Johnson/Icon Sportswire) (Icon Sportswire via AP Images)
Beggs wanted to compete against boys (Picture: AP)

The Trinity High School student had been allowed to take testosterone while he was competing because it had been ‘prescribed by a medical practitioner for a valid medical purpose.’

His grandmother and guardian Nancy Beggs wasn’t as diplomatic during a previous regional match after a girl forfeited, and added: ‘Today was not about their students winning. Today was about bias, hatred and ignorance.’

Beggs has a 53-0 record.

MORE: Thousands attend screening in Trafalgar Square after director boycotts Oscars