Until June 2019, homosexual acts were illegal in Botswana. A Botswana High Court decision of 11 June of that year struck down provisions in the Criminal Code that punished "carnal knowledge of any person against the order of nature" and "acts of gross indecency", making Botswana one of twenty-two African countries that have either decriminalised or legalised homosexual acts.