The US is one of just 13 countries to have voted against a United Nations resolution condemning the death penalty for having gay sex.

Although the vote passed, America joined countries such as China, Iraq and Saudi Arabia in opposing the move.

The Human Rights Council resolution condemned the “imposition of the death penalty as a sanction for specific forms of conduct, such as apostasy, blasphemy, adultery and consensual same-sex relations”.

It attacked the use of execution against persons with “mental or intellectual disabilities, persons below 18 years of age at the time of the commission of the crime, and pregnant women”.

It also expressed “serious concern that the application of the death penalty for adultery is disproportionately imposed on women”.

The US supported two failed amendments put forward by Russia, which stated the death penalty was not necessarily “a human rights violation” and that it is not a form of torture, but can lead to it “in some cases”.

And it abstained on a “sovereignty amendment” put forward by Saudi Arabia, that stated “the right of all countries to develop their own laws and penalties”.

Boris Johnson urges EU to go soft on Turkey's plan to reintroduce the death penalty

The International Lesbian, Gay, Bisexual, Trans and Intersex Association (ILGA) branded the amendments an attempt to “dilute its impact”.

Despite America’s opposition, the vote in Geneva passed with 27 of the 47-member Human Rights Council in favour.

There are currently six countries where the death penalty is used for people in same-sex relationships: Iran, Saudi Arabia, Sudan, Yemen, Nigeria and Somalia. This number rises to eight if the Isis-occupied territories of Iraq and Syria are included.

There are another five countries where it is technically allowed, but not actually used in reality.

Activists protest the death penalty in Texas Show all 6 1 /6 Activists protest the death penalty in Texas Activists protest the death penalty in Texas Family and friends of Jeff Wood and anti-death penalty activists march from the Texas State Capitol to the Office of Governor Greg Abbott to deliver a petition with over 10,000 signatures asking the governor and the Texas Board of Pardons and Paroles to commute Wood's sentence on August 18, 2016 in Austin, Texas. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Carla Harvey adds her name to a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Family and friends of Jeff Wood and anti-death penalty activists delivered the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas A massive explosion guts Mexico's biggest fireworks market in Mexico City, on December 20, 2016. The explosion killed at least 31 people and injured 72, authorities said. The conflagration in the Mexico City suburb of Tultepec set off a quick-fire series of multicolored blasts that sent a vast cloud of smoke billowing over the capital. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Darius Broussard adds his name to a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Family and friends of Jeff Wood and anti-death penalty activists delivered the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Family and friends of Jeff Wood and anti-death penalty activists march from the Texas State Capitol to the Office of Governor Greg Abbott to deliver a petition with over 10,000 signatures asking the governor and the Texas Board of Pardons and Paroles to commute Wood's sentence on August 18, 2016 in Austin, Texas. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Mark Clements (L), who was imprisoned for 28 years before being released and exonerated, encourages passersby to sign a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Clements joined family and friends of Jeff Wood and anti-death penalty activists to deliver the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images

Renato Sabbadini, ILGA Executive Director, said. “It is unconscionable to think that there are hundreds of millions of people living in states where somebody may be executed simply because of whom they love.

“This is a monumental moment where the international community has publicly highlighted that these horrific laws simply must end.”

Heather Nauert, State Department spokesperson, told The Independent: "The headlines, reporting and press releases on this issue are misleading. As our representative to the Human Rights Council in Geneva said on Friday, the United States is disappointed to have to vote against this resolution. We had hoped for a balanced and inclusive resolution that would better reflect the positions of states that continue to apply the death penalty lawfully, as the United States does.

"The United States voted against this resolution because of broader concerns with the resolution’s approach in condemning the death penalty in all circumstances and calling for its abolition.

"The United States unequivocally condemns the application of the death penalty for conduct such as homosexuality, blasphemy, adultery and apostasy. We do not consider such conduct appropriate for criminalisation and certainly not crimes for which the death penalty would be lawfully available as a matter of international law."

The 13 states to oppose the resolution were Botswana, Burundi, Egypt, Ethiopia, Bangladesh, China, India, Iraq, Japan, Qatar, Saudi Arabia, the US and the United Arab Emirates.