The court ruled that the bill was passed by members of parliament 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.”
Several international donors have cut aid to Uganda since the law was adopted.
Ugandan government spokesperson Ofwono Opondo said the government was still waiting the attorney general’s advice about whether to challenge the ruling in the Supreme Court.
He added that the ruling showed to Western donors that Uganda’s democracy was functioning very well, and that they should reinstate any aid they had cut.
The Ugandan authorities have defended the law in the past, saying President Yoweri Museveni wanted “to demonstrate Uganda’s independence in the face of Western pressure and provocation.”
‘Null and void’
Uganda is a deeply conservative society where many people oppose gay rights and the sentence for homosexual acts has always been life imprisonment.
Earlier drafts of the anti-homosexuality act made it a crime not to report gay people – which would have made it impossible to live as openly gay – but this clause was removed.
However the legislation that was passed in parliament was “null and void,” the presiding judge at the Constitutional Court said, as not enough lawmakers had been present to vote on the bill.
The law, which was signed by Museveni in February, toughened up existing laws.
Lesbians were included for the first time, and those found living in a same-sex marriage could have been sentenced to life imprisonment.
The challenge to the law was brought by 10 petitioners, including academics, journalists, both ruling and opposition MPs, human rights activists and rights groups.
“The retrogressive anti-homosexuality act of Uganda has been struck down by the Constitutional Court – it’s now dead as a door nail,” the AFP news agency quotes prominent journalist Andrew Mwenda, one of the petitioners, as saying.
Read more at www.bbc.com