In 2008, South Africa placed fifth out of 48 sub-Saharan African countries on the Ibrahim Index of African Governance. South Africa scored well in the categories of Rule of Law, Transparency and Corruption, and Participation and Human Rights, but was let down by its relatively poor performance in Safety and Security. In November 2006, South Africa became the first and only African country to legalise same-sex marriage.