Ghana has passed a bill that would make it a crime for people to identify as LGBTQ.
Those who are found guilty of engaging in LGBTQ sex acts could face up to 3 years in prison.
In addition, anyone who promotes or sponsors LGBTQ activities can be sentenced to up to 5 years in prison.
Gay sex is already illegal in Ghana and can lead to three years in prison.
The bill, which has been criticized by human rights groups and activists, will now go to the president who can decide whether to sign it into law.
The president has avoided the debate over the bill but said previously that he would approve it if most people want him to.
Approximately 30 African countries currently criminalize homosexuality, according to the International Lesbian, Gay, Bisexual, Trans and Intersex Association (ILGA).
South Africa is the only nation on the continent that allows same-sex marriage, having legalized it in 2006.