Uganda's parliament has passed a bill which would criminalise people who identify as gay, or a sexual minority, APA reports citing BBC.
Individuals could face lengthy prison terms if the bill is signed into law by President Yoweri Museveni.
Under the proposed legislation, friends, family and members of the community would have a duty to report individuals in same-sex relationships to the authorities.
Homosexual acts are already illegal in the east African country.
But the bill seeks to go further and criminalise people on the basis of their sexual identity.
The bill, which was first tabled earlier this month, passed with widespread support in Uganda's parliament on Tuesday.
It will now go to President Museveni who can choose to use his veto - and maintain good relations with Western donors and investors - or sign it into law.
The bill also stipulates that a person who is convicted of grooming or trafficking children for purposes of engaging them in homosexual activities faces life in prison.
Individuals or institutions which support or fund LGBT rights' activities or organisations, or publish, broadcast and distribute pro-gay media material and literature, also face prosecution and imprisonment.
A small group of Ugandan MPs on a committee scrutinising the bill disagreed with its premise. They argue the offences it seeks to criminalise are already covered in the country's Penal Code Act.