india gay lawA couple kiss during the Dehli, Indian Queer Pride March in 2011. Until last month, homosexuality was illegal in the country.Daniel Berehulak/Getty

Gays and lesbians throughout India rejoiced last month when a landmark court ruling made homosexuality legal in the country.

While the decision may seem like a long time coming for those in the LGBTQ community, gay sex is still illegal in nearly 40% of countries in the United Nations, according to statistics released last year by the International Lesbian, Gay, Bisexual, Trans and Intersex Association (ILGA).

To understand how gay rights vary around the world, Business Insider created a set of maps that visualize which countries have legalized gay marriage and the countries where gay people can still be put to death, among other questions.

The results show that while homosexuality is no longer outlawed in the majority of the world, there’s still a long way to go in terms of acceptance and equality for LGBTQ people.