The death penalty is officially law, but generally not practiced, in Brunei, Mauritania, Nigeria (in the northern third of the country), Saudi Arabia, Somalia (in the autonomous state of Jubaland) and the United Arab Emirates. By contrast, not counting non-state actors and extrajudicial killings, only one country is believed to impose the death penalty on consensual same-sex sexual acts: Iran. Notably, as of January 2021, 29 countries recognized same-sex marriage.