Officially, prostitution is illegal in mainland China.[2] The government of China has vacillated, however, in its legal treatment of prostitutes, treating them sometimes as criminals and sometimes as behaving with misconduct.