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.
Religion is an un-ignorable factor in the maps. While the majority of the world has legalized homosexuality, the countries where it is still outlawed are concentrated in the Middle East, Southeast Asia, and Africa — areas with majority-Muslim nations.
In fact, nearly all of the countries where homosexuality is technically still a capital crime are majority Muslim.
In some countries where homosexuality is legal, there are still several laws in place that make living openly difficult.
Only about 13% of UN member countries have legalized gay marriage.
Australia, Germany, and Malta were the most recent to adopt same-sex marriage, in 2017. The first country to do so was the Netherlands, in 2001.
Same-sex couples largely aren't allowed to adopt outside of the Americas and Europe.
Though it's too small to show up on the map, the Mediterranean island nation of Malta has also banned conversion therapies, in addition to Brazil and Ecuador.
Just 5% of UN member states have written it into their constitutions that sexual orientation-based discrimination is not allowed.
More countries have taken strides when it comes to tackling sexual orientation-based discrimination in the workplace.