Former Nigerian President Goodluck Jonathan signed a bill in 2014 that criminalised same-sex relationships, despite pressure from Western governments to preserve the rights of gay and lesbian people.
The bill contains penalties of up to 14 years in prison and bans gay marriage, same-sex “amorous relationships” and membership of gay rights groups.
Defence lawyer Kimi Appah said the gathering had been a birthday party held in April to honour a man who appeared in court.
“Police got wind of it, arrested them and made trumped up charges that they are trying to celebrate a gay marriage,” he told the court in Zaria, a city in the northern state of Kaduna.
The man appeared in court with three other people. They were charged with criminal conspiracy and illegal gathering, to which they all pleaded not guilty. The other accused were not present in court.