(Photo by Alex Wong/Getty Images)

Donald Trump has thrown his support behind disgraced homophobe Roy Moore in his bid for the US Senate.

Roy Moore was selected in a Republican primary this week ahead of a special election for the US Senate seat vacated by Trump’s Attorney General Jeff Sessions.

Despite a string of controversies surrounding his abhorrent views about LGBT people, Moore won a majority of the votes in the run-off, meaning he will go head-to-head with Democratic candidate Doug Jones.

Donald Trump, who sided with mainstream Republicans in backing Moore’s defeated primary opponent Luther Strange, has now vowed to throw his support behind the GOP candidate.

He tweeted: “Congratulations to Roy Moore on his Republican Primary win in Alabama. Luther Strange started way back & ran a good race. Roy, WIN in Dec!”

Due to Alabama’s heavily-Republican electoral leaning, Democratic challenger Doug Jones has a steep uphill battle to stop Moore from winning the Senate seat.

He previously vowed to “campaign like hell” for Moore to win the special election if the primary favoured him.

Moore is now on course to become the most homophobic politician elected to office in recent US history. He has previously said that “homosexual conduct should be illegal” and compared it to bestiality.

An investigation by CNN last week revealed that Moore believes gay sex should be illegal, confirming in 2005: “Homosexual conduct should be illegal, yes.”

Moore has also compared gay sex to bestiality, saying: “Just because it’s done behind closed doors, it can still be prohibited by state law

“Do you know that bestiality, the relationship between man and beast is prohibited in every state? It’s the same thing.”

It was also revealed that he has appeared multiple times on a radio show hosted by pastor Kevin Swanson, who is known for preaching that gay people must be stoned to death.

In a 2015 interview Moore himself refused to say whether he supports gay people being put to death.

The candidate formerly served as Alabama’s Chief Justice, but was ejected from the role after abusing his authority in a bid to block gay weddings in the state.

The disgraced justice had issued a string of orders declaring the US Supreme Court ruling on equal marriage “doesn’t apply” in Alabama due to state anti-gay laws, and ordered probate judges to enforce a gay marriage ban.

Moore fumed: “This was a politically motivated effort by radical homosexual and transgender groups to remove me as Chief Justice of the Supreme Court because of outspoken opposition to their immoral agenda.”

It was in fact because of his flagrantly illegal actions.

Moore said: “Because of YOU, tonight, the establishment has been defeated in Alabama!

“We still have a ways to go before December 12th’s general election, and the road certainly doesn’t get easier, but with YOU, the best grassroots army of supporters around, I know we can take on anything together!”

The special election takes place on December 12.