A string of west African countries have outlawed same-sex relations in recent months, further eroding LGBTQ rights on a continent where they were already under attack.

Of Africa's 54 countries, only about 20 do not currently criminalise same-sex relations.

Here is a look at the wave of anti-LGBTQ sentiment sweeping the continent and some of the forces driving it, from politicians playing to their homophobic base to the geopolitics of rejecting supposedly "Western values".

What are the laws?

Uganda set the tone in 2023, adopting one of the world's harshest anti-LGBTQ laws, including the death penalty for "aggravated homosexuality".