AskLegal.my

Selling Sex Is Not A Federal Offence In Malaysia. Almost Everything Around It Is.

14 min read

There is no provision in Malaysian federal law that makes the act of selling sex, in itself, a criminal offence.

That surprises most people, and it is genuinely the position. What the Penal Code criminalises is the surrounding conduct: exploiting a person for prostitution (s.372), living on the earnings of another's prostitution (s.372A), soliciting for the purpose of prostitution (s.372B), and brothel-keeping (s.373).

The practical effect of that distinction is smaller than it sounds, and a criminal lawyer who represents sex workers put the reason plainly. Rajsurian Pillai, quoted in a 2022 piece on sex work in Malaysia, said that whatever the section says, "what the courts hear or what the police think in their mind is, 'Oh, you are a prostitute, that means you were prostituting. Therefore, that's a crime'."

So the honest summary is: not illegal in itself, comprehensively illegal in practice, and enforced against the most vulnerable participant.

This article sets out the law without moralising about it. Sex work in Malaysia involves Malaysian citizens, migrant workers, trafficking victims and people with very different degrees of choice. Treating them as one category serves nobody.

No federal law criminalises selling sex itself. s.372 Penal Code criminalises exploiting a person for prostitution; s.372A criminalises knowingly living wholly or partly on the earnings of another's prostitution — up to 15 years, whipping and a fine; s.372B criminalises soliciting or importuning for the purpose of prostitution in any place — up to 1 year, a fine, or both; s.373 addresses brothels. The Immigration Act applies to non-citizens. Muslims face a separate Syariah layer, and in Terengganu and Kelantan Muslims convicted of prostitution may face public caning. The Anti-Trafficking in Persons and Anti-Smuggling of Migrants Act 2007 (Act 670) covers sex trafficking, with penalties of 3 to 20 years and a fine — and it is the crucial distinction between an exploited person and a consenting adult.

1. The provisions, and what each actually targets

s.372 — Exploiting any person for purposes of prostitution. Covers selling, letting for hire, disposing of, procuring, buying, hiring or otherwise obtaining possession of a person with intent that they be employed or used for prostitution, either within or outside Malaysia. It also covers bringing a person into or taking them out of Malaysia by false pretence, false representation or fraudulent or deceitful means for that purpose.

s.372 also reaches advertising. It prohibits publishing or displaying advertisements or notices related to prostitution, seeking information for that purpose, and accepting such advertisements for publication or display.

s.372A — Persons living on or trading in prostitution. Anyone who knowingly lives wholly or in part on the earnings of the prostitution of another person faces imprisonment up to fifteen years and whipping, and is also liable to a fine.

Note the presumption in s.372A(2). Where a person is proved to have exercised control, direction or influence over a prostitute's movements in a manner showing they are aiding, abetting or compelling the prostitution, they are deemed, in the absence of proof to the contrary, to be knowingly living on the earnings. The burden shifts.

s.372B — Soliciting for purpose of prostitution. > "Whoever solicits or importunes for the purpose of prostitution or any immoral purpose in any place shall be punished with imprisonment for a term not exceeding one year or with fine or with both."

s.373 — Suppression of brothels.

The definition that ties them together. Under s.372(3), for the purposes of ss.372, 372A and 372B, "prostitution" means the act of a person offering that person's body for sexual gratification for hire, whether in money or in kind.

2. Why "not illegal" is a technicality

Section 372B is where the theory meets reality.

It criminalises soliciting or importuning — offering. It does not criminalise the sale itself. Commentary has described the resulting position as: a sex worker may lawfully provide the service but may not lawfully offer it.

That is not a workable distinction for anyone actually doing the work, and it is why s.372B is the provision under which sex workers are most commonly charged.

A further ambiguity worth flagging honestly. It is not clear whether Malaysian law treats buying as soliciting. Some jurisdictions criminalise both sides of the solicitation; whether s.372B captures a client seeking a sex worker has been described in Malaysian commentary as unclear. We could not find an authoritative resolution of that question and are not going to assert one. A client should not assume immunity.

Practical detail from a practitioner. Bail under s.372B has been reported as ranging from RM1,500 to RM2,500, at the magistrate's discretion. A person who pleads guilty is sentenced on the spot and does not need to post bail; a person who pleads not guilty must post bail to remain out of custody, with trial typically beginning around nine months later after multiple case managements.

Read that again from the perspective of someone with no money. Pleading guilty is immediate and cheap. Contesting the charge means finding RM1,500–2,500 and waiting nine months. That structure produces guilty pleas regardless of the merits.

3. The other layers

Immigration. Non-citizens face the Immigration Act in addition to everything above, and immigration offences frequently dominate the outcome — detention and deportation rather than a Penal Code prosecution.

Syariah law, for Muslims. A second layer applies to Muslims through state Syariah enactments. In Terengganu and Kelantan, Muslims convicted of prostitution may be punished with public caning. As with all Syariah criminal matters, the offences and penalties are state law and differ across the states, and Syariah courts have jurisdiction only over persons professing the religion of Islam — see (A Non-Muslim Cannot Be Charged With Khalwat. In 2014, One Was Anyway.).

Public health law. The Prevention and Control of Infectious Diseases Act 1988 includes an offence of exposing another person to the risk of HIV infection.

Licensing and local regulations. Local health regulations prevent health and beauty establishments, including massage parlours, from employing sex workers.

Other general offences — vagrancy-type provisions, the Minor Offences Act 1955 and local by-laws — are also available to enforcement.

4. Trafficking: the distinction that matters most

The Anti-Trafficking in Persons and Anti-Smuggling of Migrants Act 2007 (Act 670) criminalises both labour trafficking and sex trafficking, with punishments of three to twenty years' imprisonment and a fine. The Act has a dedicated part on care and protection of trafficked persons and provides for immunity in defined circumstances.

Why this matters practically. A person who has been trafficked into sex work is a victim of a serious crime, not an offender. But identifying who is which, in a raid, at 2am, across a language barrier, is exactly where the system fails.

Documented problems, from the US State Department's Trafficking in Persons reporting on Malaysia:

  • law enforcement officers have conflated human trafficking with migrant smuggling, impeding both enforcement and victim identification
  • recommendations have repeatedly included training police, labour inspectors and immigration officials on standard operating procedures for victim identification, and identifying and referring victims to services without requiring their participation in criminal proceedings
  • recommendations have included expediting freedom of movement for victims in shelters, including unchaperoned movement and permission to work
  • official complicity has been a documented concern — in September 2024 the MACC arrested 49 immigration officials and one police official, including a senior immigration officer, over bribes to circumvent proper procedures

The consequence for an individual is stark. Whether you are treated as a trafficking victim entitled to protection, or as an immigration offender to be detained and deported, can turn on how you are identified in the first hour.

5. If you are a sex worker in Malaysia

This section is practical, not moral.

If you are stopped or raided:

  • You have the same rights on arrest as anyone else. Grounds of arrest must be given; you may ask to contact a lawyer and a family member — see (The CPC Sections That Actually Govern Your Arrest: s.23, s.28, s.28A, s.117, s.112 and s.387).
  • Ask which section you are being charged under. s.372B is not the same as being charged as a trafficker, and the difference is enormous.
  • Do not plead guilty on the spot just because it is faster. It is a conviction. Ask for time to get advice.
  • If you are a non-citizen, ask for consular contact.

If you have been coerced, deceived, or had your documents taken:

  • Say so immediately and clearly. Passport confiscation, debt bondage, restriction of movement and threats are trafficking indicators.
  • Ask for a trafficking victim assessment under ATIPSOM.
  • Contact Talian Kasih 15999 (24h, WhatsApp 019-261 5999) or WAO 03-3000 8858 / TINA WhatsApp 018-988 8058.

Free help:

  • Bar Council Legal Aid Centres — malaysianbar.org.my
  • YBGK for representation at the police station stage in eligible cases
  • Talian Kasih 15999, AWAM 03-7877 0224
  • Emergency 999

On health. Access to healthcare, HIV and STI testing and treatment does not depend on the legality of how you earn a living. Government clinics and NGO outreach programmes exist and using them is not an admission of anything.

6. The policy debate, presented fairly

This is contested, and both positions are held sincerely by Malaysians.

The case for the current approach: the surrounding-conduct model targets exploitation — pimps, traffickers and brothel operators — rather than the individual. It reflects social and religious values held by a majority of Malaysians and maintains a clear public position that the state does not endorse the trade. Enforcement against solicitation addresses public order and visible street-based activity.

The case for reform: criminalising solicitation while not criminalising the sale is incoherent and, in practice, punishes the most vulnerable participant while leaving buyers largely untouched. It pushes the work underground, which makes it harder to reach people with health services, harder for a person being exploited to approach police, and easier for traffickers to operate. Public health and human rights organisations argue that decriminalisation of the worker improves both safety and trafficking detection.

This article does not adjudicate that debate. It is a live question of social policy on which reasonable Malaysians disagree.

FAQ

Is prostitution legal in Malaysia?

There is no federal law criminalising the act of selling sex itself. But soliciting (s.372B), living on the earnings (s.372A), exploitation (s.372) and brothel-keeping (s.373) are all offences, so the practical position is that it is comprehensively restricted.

What is the penalty for soliciting?

Section 372B carries imprisonment up to one year, or a fine, or both.

What about pimps?

Section 372A carries up to fifteen years' imprisonment and whipping, plus a fine, for knowingly living wholly or partly on another person's earnings from prostitution — with a statutory presumption where control over the person's movements is proved.

Is it an offence to buy sex?

Not clearly. Section 372B criminalises soliciting or importuning for the purpose of prostitution, and Malaysian commentary describes it as unclear whether that captures a buyer. Do not assume immunity.

Is the law different for Muslims?

Yes. A separate Syariah layer applies to Muslims through state enactments, and in Terengganu and Kelantan Muslims convicted of prostitution may face public caning. Syariah jurisdiction extends only to persons professing Islam.

What happens to foreign sex workers?

The Immigration Act applies in addition, and outcomes are frequently detention and deportation. If the person was trafficked, ATIPSOM protections should apply — but victim identification has been a documented weakness.

What is the difference between a sex worker and a trafficking victim?

Legally, everything. A trafficking victim is a victim of a crime carrying 3–20 years for the trafficker, with protection provisions under ATIPSOM. Indicators include deception, coercion, debt bondage, document confiscation and restriction of movement.

Can a sex worker report a crime committed against them?

Yes, and they should be able to. In practice, fear of being charged deters reporting — which is one of the central arguments in the reform debate.

This article is general legal information, not legal advice, and reading it does not create a lawyer–client relationship.

It sets out the legal position and the arguments on both sides of a contested policy question without taking a view on the morality of sex work.

Specific to this article: whether s.372B captures a buyer as well as a seller is genuinely unclear on the Malaysian commentary we located, and this article does not resolve it — no reader should treat purchase as lawful on the strength of anything here. The section numbering and penalties are drawn from reproduced statutory text and practitioner commentary; verify against the current reprint of the Penal Code (Act 574) at agc.gov.my. Bail figures and the description of court timelines come from a practitioner interview and reflect practice at that time rather than any rule. Syariah offences relating to prostitution are state law and differ across the 13 states and 3 federal territories. Trafficking identification, protection and immunity under ATIPSOM depend heavily on how a person is assessed at the point of enforcement, and international monitoring has repeatedly identified victim identification as a weakness in Malaysia — anyone who believes they have been trafficked should say so immediately and seek legal help. If you are facing a charge, get a lawyer before entering any plea.

Spot something outdated or wrong? Tell us — we’ll verify and correct it, with the correction noted.

Key sources (10) — how this was verified
  • BurgieLaw, Penal Code s.372 (Malaysia) — the text of s.372(1) on exploiting any person for purposes of prostitution, covering selling, letting for hire, disposing of, procuring, buying, hiring or otherwise obtaining possession of any person with intent that they be employed or used for prostitution within or outside Malaysia, and bringing into or taking out of Malaysia by false pretence, false representation or fraudulent or deceitful means; and the s.372(3) definition that for ss.372, 372A and 372B "prostitution" means the act of a person offering that person's body for sexual gratification for hire whether in money or in kind: https://www.burgielaw.com/resources/act?act_title=Penal+Code&section=372
  • BurgieLaw, Penal Code s.372A — the text providing that whoever knowingly lives wholly or in part on the earnings of the prostitution of another person shall be punished with imprisonment which may extend to fifteen years and with whipping, and shall also be liable to fine; and s.372A(2) deeming a person who has exercised control, direction or influence over a prostitute's movements in a manner showing aiding, abetting or compelling to be knowingly living on the earnings in the absence of proof to the contrary: https://www.burgielaw.com/resources/act?act_title=Penal+Code&section=372A
  • BurgieLaw, Penal Code s.372B — the full text: "Whoever solicits or importunes for the purpose of prostitution or any immoral purpose in any place shall be punished with imprisonment for a term not exceeding one year or with fine or with both.": https://www.burgielaw.com/resources/act?act_title=Penal+Code&section=372B
  • Cornell Law School Legal Information Institute, Gender Justice resource on Malaysia Penal Code Art 372 — the summary that s.372 makes it a crime to sell, let for hire or otherwise dispose of any person for the purpose of prostitution, and criminalises bringing a person into or taking a person out of Malaysia with that intention: https://www.law.cornell.edu/gender-justice/resource/Malaysia_Penal_Code_Act_574_Chapter_XVI_Article_372
  • Queer Lapis, "All You Want to Know About Sex Work in Malaysia" (2022) — the mapping of ss.372, 372A, 372B and 373; the observation that s.372B does not state that prostitution is illegal, only that soliciting for the purpose of prostitution is; criminal lawyer Rajsurian Pillai's quoted observation that what courts hear and police think is "Oh, you are a prostitute, that means you were prostituting. Therefore, that's a crime"; and the practical detail that bail under s.372B ranges from RM1,500 to RM2,500 at the magistrate's discretion, that a guilty plea results in sentencing on the spot without bail, and that a not-guilty plea requires bail with trial usually beginning about nine months later after multiple case managements: https://www.queerlapis.com/sexwork4faq/ and https://www.queerlapis.com/sex-work-related-laws/
  • AskLegal existing page — the point that s.372 also prohibits seeking information for the purpose of prostitution and accepting advertisements or notices for publication or display; and the acknowledgement that it is unclear whether Malaysia's legal definition of solicitation under s.372B extends to a person looking for a prostitute: https://asklegal.my/p/is-prostitution-illegal-in-malaysia-you-might-be-blown-by-the-answer
  • Wikipedia, Prostitution in Malaysia — the position that there are no federal laws against prostitution but laws against related activities; that related activities such as soliciting and brothels are illegal; that in Terengganu and Kelantan Muslims convicted of prostitution may be punishable with public caning; that the Prevention and Control of Infectious Diseases Act 1988 adds an offence of exposing another person to the risk of HIV infection; and that local health regulations prevent health and beauty establishments including massage parlours from employing sex workers: https://en.wikipedia.org/wiki/Prostitution_in_Malaysia
  • US State Department, 2025 Trafficking in Persons Report — Malaysia — the Anti-Trafficking in Persons and Anti-Smuggling of Migrants (ATIPSOM) Act 2007 as amended criminalising labour trafficking and sex trafficking with punishments of three to 20 years' imprisonment and a fine, described as sufficiently stringent and, for sex trafficking, commensurate with penalties for other grave offences such as rape; the recommendations to provide trauma-informed and victim-centred services, to identify and refer victims without requiring their participation in criminal proceedings, and to train police, labour inspectors and immigration officials on victim identification SOPs; the recommendation to expedite freedom of movement for victims in shelters including unchaperoned movement and permission to work; and the September 2024 MACC action resulting in the arrest of 49 immigration officials and one police official, including a senior immigration officer, for accepting bribes to circumvent proper procedures: https://www.state.gov/reports/2025-trafficking-in-persons-report/malaysia/
  • US State Department, 2022 and 2023 Trafficking in Persons Reports — Malaysia — the documented problem that law enforcement officers conflated human trafficking and migrant smuggling, impeding anti-trafficking law enforcement and victim identification; and prosecution and conviction figures under a range of laws including the ATIPSOM Act, Immigration Act and Penal Code: https://www.state.gov/reports/2022-trafficking-in-persons-report/malaysia and https://www.state.gov/reports/2023-trafficking-in-persons-report/malaysia/
  • Anti-Trafficking in Persons and Anti-Smuggling of Migrants Act 2007 (Act 670) — the Act's structure including Part III (Trafficking in Persons Offences, Immunity, etc.), Part IIIA (Smuggling of Migrants), Part IV (Enforcement) and Part V (Care and Protection of Trafficked Persons); Royal Assent 18 July 2007, commencement 26 July 2007, with parts effective 1 October 2007 and 28 February 2008; and amendment by the Anti-Trafficking in Persons (Amendment) Act 2010 [Act A1385]: https://en.wikipedia.org/wiki/Anti-Trafficking_in_Persons_and_Anti-Smuggling_of_Migrants_Act_2007 and https://toolsfortransformation.net/wp-content/uploads/2017/03/Malaysian-Law-Anti-Trafficking-in-Person-Smuggling-of-Migrants-ATIPSOM-2.pdf