 The Criminal Procedure Act 51 of 1977 criminalised "committing an immoral or indecent act with such other person" and also soliciting for the same.Municipal by-laws also contained provisions about prostitution.As part of the repeal of many petty apartheid laws under the government of P. W. Botha, the Immorality and Prohibition of Mixed Marriages Amendment Act 1985 repealed the interracial restrictions of the Immorality Acts.