Some countries have made prostitution illegal . One of the most serious problems associated with prostitution is the fact that the sex trade is surrounded by illegal , abusive and dangerous activities . One view maintains that such situations occur because prostitution is kept illegal and the industry operates on the black market .