Uganda's Constitutional Court has annulled tough anti-gay legislation signed into law in February.
It ruled that the bill was passed by MPs in December without the requisite quorum and was therefore illegal.
Homosexual acts were already illegal, but the new law allowed for life imprisonment for "aggravated homosexuality" and banned the "promotion of homosexuality".