Ugandan President Yoweri Museveni on Monday signed a law that imposes a 14-year prison sentence for homosexual acts - and life sentences for those found guilty of "aggravated homosexuality." A measure imposing the death penalty was removed from an earlier version of the bill.
Homosexuality was already illegal in Uganda, as it is in 37 other African countries. Though the death penalty was removed from Uganda's law, it's a potential punishment elsewhere, including parts of Nigeria, Mauritania and Sudan.
(Last month, Nigerian President Goodluck Jonathan signed a measure similar to Uganda's into law; a few weeks later, a mob pulled 14 young men from their beds and assaulted them, screaming about cleansing their neighborhood of gay people.)
Here are the 10 countries where homosexuality may be punishable by death:
Yemen: According to 1994 penal code, married men can be sentenced to death by stoning for homosexual intercourse. Unmarried men face whipping or one year in prison. Women face up to seven years in prison.
Iran: In accordance with sharia law, homosexual intercourse between men can be punished by death, and men can be flogged for lesser acts such as kissing. Women may be flogged.
Iraq: The penal code does not expressly prohibit homosexual acts, but people have been killed by militias and sentenced to death by judges citing sharia law.
Mauritania: Muslim men engaging in homosexual sex can be stoned to death, according to a 1984 law. Women face prison.
Nigeria: Federal law classifies homosexual behavior as a felony punishable by imprisonment, but several states have adopted sharia law and imposed a death penalty for men. A law signed in early January makes it illegal for gay people countrywide to hold a meeting or form clubs.
Qatar: Sharia law in Qatar applies only to Muslims, who can be put to death for extramarital sex, regardless of sexual orientation.
Saudi Arabia: Under the country's interpretation of sharia law, a married man engaging in sodomy or any non-Muslim who commits sodomy with a Muslim can be stoned to death. All sex outside of marriage is illegal.
Somalia: The penal code stipulates prison, but in some southern regions, Islamic courts have imposed Sharia law and the death penalty.
Sudan: Three-time offenders under the sodomy law can be put to death; first and second convictions result in flogging and imprisonment. Southern parts of the country have adopted more lenient laws.
United Arab Emirates: Lawyers in the country and other experts disagree on whether federal law proscribes the death penalty for consensual homosexual sex or only for rape. In a recent Amnesty International report, the organization said it was not aware of any death sentences for homosexual acts. All sexual acts outside of marriage are banned.