But it is not the only country where people are persecuted for being gay.
According to the International Lesbian, Gay, Bisexual, Trans and Intersex Association (ILGA) report on state-sponsored homophobia, released last month, six United Nations member states imposed the death penalty on consensual same-sex sexual acts. Brunei now brings that count to seven.
The death penalty is also possible punishment in a further five member states, according to the report. In some of those nations, like Brunei, the sentence is rooted in an interpretation of Islamic Sharia law.
70 UN member states still criminalize same-sex relations between two consenting adults, the report said. In 26 countries of those countries, the penalty varies from 10 years in prison to life.
The map in this story has been updated to correctly reflect the legal status of Mozambique.