Republic of South Africa

Same-sex marriage has been legal in South Africa since 2006.

An excerpt from the article 34 facts about Republic of South Africa

The country was the first country in Africa and the fifth in the world to legalize same-sex marriage. Moreover, gays, lesbians, and bisexuals are not excluded from military service because of their sexual orientation.