Revellers march with a giant rainbow flag during the annual Gay Pride Parade at Copacabana beach in Rio de Janeiro, Brazil, on November 16, 2014.

A new report from the Pew Research Center asked people in 39 different countries one question: "Should society accept homosexuality?" The 37,653 who took part in the survey responded with "Yes," "No," or declined to answer.

The countries with the highest percentage of "Yes" or "No" votes show which countries are the most and least tolerant of homosexuality.

While the survey certainly leaves out some of the world's most and least gay-friendly nations, a trend does surface within the data. Overall, there tends to be greater acceptance of gays in the more secular and affluent countries.

How did America fare? The US falls closer to the middle with 60 percent saying yes and 33 percent saying no. GlobalPost compiled a list below of the most and least accepting countries below:

Spain: 88%

Procsilas Moscas/Flickr Common


Germany: 87%

Gay couple Kai and Michael Korok and their daughter Jana, 4, attend the opening of Germany's first gay parent counseling center on March 15, 2013 in Berlin, Germany. SEAN GALLUP Getty Images


Canada: 80%

Stephen Weppler/Flickr Common


Czech Republic: 80%

Gabriel Buoys/AFP/Getty


Australia: 79%

  Sydney Mardi Gras 2010. Kyle Kim/GlobalPost


France: 77%

Two men kiss during a demonstration in support of the legalisation of gay marriage and LGBT parenting in France at the Plaza Francia in Buenos Aires, on January 27, 2013. ALEJANDRO PAGINI AFP/Getty Images


Britain: 76%

Two costumed men pose during the EuroPride Gay and Lesbian Parade on July 1, 2006. AFP/GETTY IMAGES


Argentina: 74%

Charlie Nguyen/Flick Common


Italy: 74%

Italian gay rights supporters take part in a ceremony to protest against an increasing number of homophobic attacks throughout Italy in front of Rome's Colosseum, on September 4, 2009. ANDREAS SOLARO AFP/Getty Images


Philippines: 73%

Supporters take part in an annual gay pride march calling for equal rights for lesbian, gay, bisexual and transgender people in Manila on December 3, 2011. JAY DIRECTO AFP/Getty Images

And here are the 10 countries that are the most resistant to homosexuality

Nigeria: 98%

The Archbishop of the Anglican Church of Nigeria Peter Jasper Akinola. Akinola has supported legislation criminalizing gay organizations. CHIP SOMODEVILLA Getty Images


Jordan: 97%

A general view of the city of Amman on March 26, 2013 in Amman, Jordan. ADAM PRETTY/Getty Images


Senegal: 96%

People leave after listening to a statement delivered by Muslim religious leaders at Cheikh Oumar Foutiyou Tall mosque in Dakar on April 29, 2009 criticizing the liberation on April 20 of 9 men allegedly jailed on charges of homosexuality and announced the creation of Islamic front for the defence Islamic values.


Uganda: 96%

A man looks on December 11, 2012 at an advertising by campaign group Avaaz in the state-owned Ugandan newspaper The New Vision, protesting against an anti-homosexuality bill. AFP/GETTY IMAGES


Ghana: 96%

Former President John Atta Mills of Ghana is pictured on May 3, 2012 during the opening of the 15-nation Economic Community of West African States (ECOWAS) talks on the crises in neighboring Mali and Guinea-Bissau. SEYLLOU AFP/Getty Images


Egypt: 95%

Egyptian men, accused of having gay sex, cover their faces as they walk into a Cairo court July 18, 2001. The trial of the 52 Egyptians opened amid scuffles between police and their families as well as concern from international human rights groups. ANDREW BLACK AFP/Getty Images


Tunisia: 94%

A picture taken on February 13, 2013 from a rooftop of the Medina shows houses and buildings in Tunis downtown. Tunisia's ruling Ennahda party said today it could leave power, throwing Prime Minister a lifeline in his quest to form a government of technocrats and steer the country out of its crisis. AFP/GIANLUIGI GUERCIA


Indonesia: 93%

A member of Hizbuth Tahrir Indonesia attends a protest against sexual deviant acts which they believe to be acts such as homosexuality, bisexuality, loose sexual morals, and transgender, in Jakarta on December 1, 2010. ADEK BERRY AFP/Getty Images


Palestinian Territories: 93%

Ultra-Orthodox Jews pray on Mount Gerizim overlooking Joseph's Tomb, one of their holiest sites, in the West Bank city of Nablus on May 28, 2009. MENAHEM KAHANA AFP/Getty Images


Kenya: 90%

Gay men kiss 20 June 2006 in Nairobi. In Kenya, homosexuality is regarded as a crime and though a growing phenomenon, the movement is still secretive and the subject of numerous discriminations. TONY KARUMBA AFP/Getty Images

Related Stories