Guide · Travel
Indonesia's new criminal code: what visitors should know
The KUHP in force since 2 January 2026 punishes sex outside marriage and cohabitation, but only on a complaint from a spouse, parent or child.

Indonesia's new criminal code (KUHP, Law 1 of 2023) has been in force since 2 January 2026. Article 411 punishes sex with someone who is not your spouse with up to one year in prison or a fine, and article 412 punishes living together as a couple outside marriage with up to six months or a fine, but both can be prosecuted only on a complaint from the spouse or from a parent or child of the unmarried person. Hotels, police and neighbours cannot start a case on their own.
- Law 1 of 2023 on the Criminal Code took effect on 2 January 2026, replacing a Dutch-era code in force for more than 80 years.
- Article 411: sex outside marriage, up to 1 year in prison or a fine.
- Article 412: cohabiting outside marriage, up to 6 months or a fine.
- Both are complaint offences: only a spouse, or a parent or child (aged 16 or over) of the unmarried person, may file.
- Insulting the president or vice president carries up to 3 years; only the president can file that complaint.
TAMBOLAKA. When Indonesia's parliament passed a new criminal code in 2022, headlines abroad focused on one line: sex outside marriage would become a crime. Three years later, on Friday 2 January 2026, the code came into force. Travellers planning a trip to Bali or Sumba still ask whether an unmarried couple can share a room. The answer is in the detail of the law, and it is less alarming than the headlines.
This is a guide to what the code says, not legal advice. If you face a specific legal problem in Indonesia, contact your embassy and a local lawyer.
The law and when it started
The new code is Law 1 of 2023 on the Criminal Code (Kitab Undang-Undang Hukum Pidana, KUHP). It was signed by President Joko Widodo and promulgated on 2 January 2023, and its article 624 set its entry into force three years later, on 2 January 2026, Kontan reported. The Associated Press, in a report published by PBS NewsHour on the day it took effect, described it as replacing a Dutch-era code that had governed Indonesia for more than 80 years; Coordinating Minister for Law Yusril Ihza Mahendra called it "the end of the colonial criminal law era".
Sumba this week, every Sunday
The week's news, one place worth the trip and practical travel notes. Free, and you get our 7-day Sumba guide (PDF) on signing up.
One email a week. No spam. Unsubscribe in one click. Sumba this weekSex outside marriage and living together: articles 411 and 412
| Article | What it covers | Maximum penalty | Who can file a complaint |
|---|---|---|---|
| 411 | Sexual intercourse with a person who is not your spouse | 1 year in prison or a fine | The spouse; or, for an unmarried person, a parent or a child aged 16 or over |
| 412 | Living together as husband and wife outside marriage | 6 months in prison or a fine | The same |
The key word is complaint. Both offences are what Indonesian law calls delik aduan: the police can act only if one of the people named in the law files a complaint, according to Kontan's summary of the articles. A hotel receptionist, a driver, a neighbour or a police officer who sees two foreigners sharing a room cannot start a case. The government said this design prevents arbitrary enforcement, including against tourists, according to AP. Human Rights Watch warned that the morality provisions could still lead to privacy violations and selective enforcement.
For most visitors the practical risk is therefore low. For a couple where one partner is married to someone else, or where a parent is unhappy about the relationship, it is not zero.
Other parts that can matter to visitors
Two other provisions drew attention when the code took effect, according to AP:
- Insulting the head of state. The code restores a ban on insulting the president or vice president, state institutions and the national ideology, with penalties of up to three years in prison for attacks on the honour or dignity of state leaders. Only the president can file such a case. Deputy Law Minister Edward Hiariej said the government has issued guidelines to separate criticism from criminal insult.
- Blasphemy. The code expands the existing blasphemy law, with up to five years in prison for deviating from the core teachings of Indonesia's six recognised religions.
Neither is likely to touch an ordinary holiday, but both apply to what you post online while you are in the country. Drug offences are covered by separate and much harsher laws; police checked ferry passengers at Waingapu port on 2 November 2026, as we reported in our story on the checks.
What it means on Sumba
Sumba is a conservative, mostly Christian island with strong customary rules, and the code does not change what is polite. Modest dress is expected in villages and at ceremonies; our etiquette guide has the details. But nothing in articles 411 and 412 lets a hotel refuse a couple or report them. Entry rules are unchanged too: visas are covered in our guide to Indonesian visas for Sumba, and health and safety in our safety guide.
What it means
Since 2 January 2026, sex outside marriage and cohabitation are crimes in Indonesia, but only a spouse, parent or child can bring a case. For a tourist couple on Sumba, that makes prosecution very unlikely, though not impossible in family disputes. The provisions that deserve more care are the ones on insulting the president and on religion, which apply to what you say and post, and the drug laws, which are separate and severe.
For a couple on holiday in Sumba, the code changes little in practice: no hotel, guide or police officer can bring a case under articles 411 or 412 without a complaint from a spouse, parent or child. Respect local norms anyway, keep criticism of officials off social media while you are in the country, and remember that drug laws are separate and very strict.
Frequently asked questions
Can unmarried couples share a hotel room in Indonesia in 2026?
Yes in practice. Cohabitation and sex outside marriage are offences under the new code, but only a spouse, parent or child can file a complaint, so hotels and police cannot act on their own.
When did Indonesia's new criminal code take effect?
On 2 January 2026, three years after Law 1 of 2023 was promulgated on 2 January 2023.
Does the new criminal code apply to foreigners?
Yes, Indonesian criminal law applies to everyone in Indonesia, but the morality articles 411 and 412 can be prosecuted only on a complaint from a spouse, parent or child.
- Indonesia's new penal code takes effect, marking historic break with colonial law, AP via PBS NewsHour, 2 January 2026
- Berlaku mulai 2 Januari 2026, siapa saja yang berhak melaporkan kasus kumpul kebo, Kontan
Spotted an error? Write to info@ecobeachcity.com.
Sumba this week, every Sunday
The week's news, one place worth the trip and practical travel notes. Free, and you get our 7-day Sumba guide (PDF) on signing up.
One email a week. No spam. Unsubscribe in one click. Sumba this week



