Activists say the law has unleashed a torrent of abuse against LGBT people by both private individuals and state agents.

"We decline to nullify the anti-homosexuality act 2023 in its entirety, neither will we grant a permanent injunction against its enforcement," said Richard Buteera, lead judge, reading the judgment on behalf of his colleagues.

The court did find, however, that some sections of the law violated the right to health, and that it was "inconsistent with right to health, privacy and freedom of religion".

(Writing by George Obulutsa; Editing by Kevin Liffey)