Indonesia’s New Criminal Code: What It Means for Tourists in Bali
Since 2 January 2026, sex outside marriage and unmarried cohabitation are offences in Indonesia, but only a spouse, a parent or a child can start a case. Here is what the law says and what it means for a holiday.
By Aleks & Ria Facts checked 10 November 2026 6 min read
- In force
- 2 January 2026
- Applies to
- Everyone in Indonesia, foreigners too
- Unmarried couples
- Case only on a family complaint
- Drugs
- Still the biggest legal risk
Some links are partner links: if you book through them we may earn a commission at no cost to you. Partners never choose what we recommend.
Indonesia’s new criminal code, Law No. 1 of 2023, came into force on 2 January 2026 and replaced the code inherited from the Dutch colonial era. It applies across the country, Bali included, and it applies to foreign visitors as well as Indonesians. The headlines focused on one part of it: sex outside marriage and unmarried couples living together are now offences.
The headlines usually left out the most important detail. Both offences can only be prosecuted if a close family member files a complaint, and the law names exactly who that can be. For almost every couple on holiday, that is the end of the story. This guide explains what the code says, where the real risks still are and what has not changed at all. It is general information, not legal advice.
The parts that matter to visitors
-
Sex outside marriage (Art. 411)
- What the code says
- Up to 1 year in prison or a fine
- What it means on holiday
- Only a spouse, a parent or a child can complain
-
Unmarried couple living together (Art. 412)
- What the code says
- Up to 6 months in prison or a fine
- What it means on holiday
- The same complaint rule applies
-
Insulting the president (Art. 218)
- What the code says
- An offence
- What it means on holiday
- Only the president or vice president can complain
-
Religion and sacred places
- What the code says
- Offences against religion remain
- What it means on holiday
- Respect temples and ceremonies
-
Illegal drugs
- What the code says
- Covered by a separate narcotics law
- What it means on holiday
- Zero tolerance, very long sentences
The fine for both relationship offences is the code’s second category, set at IDR 10 million in the 2023 text. The code was later adjusted by Law No. 1 of 2026, so check the current figure if it matters to you.
Plan this trip
Partner links. Prices are approximate.
Unmarried couples: who can actually complain
Article 411 makes sex with someone who is not your husband or wife an offence, and Article 412 does the same for living together as husband and wife outside marriage. The text is clear that neither can be prosecuted without a complaint, and it limits who may file one:
- If you are married, only your husband or wife.
- If you are not married, only your parent or your child. The explanatory notes define the child as a biological child aged at least 16.
Nobody else can start a case. Hotel staff, police officers, neighbours, other guests and community groups have no right to file the complaint. The person who complains can also withdraw it at any point before the trial begins.
In practice, this means an unmarried couple sharing a room in Bali is only at risk if one of their own parents or children goes to the Indonesian police. Nothing in the code asks hotels or villas to check marriage certificates, and you do not need to bring one.
If either of you is married to someone else, the picture changes, because the husband or wife at home can complain. That is a family matter we cannot advise on, but it is worth knowing that the law reaches it.
LGBT+ travellers
The new code does not name same-sex relationships as a crime, and outside Aceh there is no law against same-sex activity between adults. Aceh is the exception: the province enforces Sharia law for Muslims and non-Muslims alike, and same-sex activity there can be punished by public caning.
The relationship articles above are written about men and women, but human rights groups have warned that the wording can still be used against same-sex couples. The UK government’s advice also notes that police have arrested people at LGBT+ events and that laws on pornography and prostitution have been applied in a discriminatory way. Bali is generally relaxed, especially in the south, but discretion in public is the sensible default.
Speech, symbols and religion
Insulting the president or vice president is an offence under Article 218. In 2025 the Constitutional Court ruled that it can only be prosecuted on a complaint from the president or vice president personally. Criticism and protest are not the same as insult, but as a visitor you have little reason to test the line, and taking part in demonstrations can also cause visa problems.
Offences against religion and religious life remain in the code. In Bali the practical rule is simple: treat temples, shrines, offerings and ceremonies with respect, wear a sarong and sash where asked, and do not climb on sacred structures or pose for revealing photos at them. Visitors have been deported for disrespect at sacred sites, and our etiquette guide covers the details.
What else has not changed
- Aceh has its own rules. Sharia law there covers alcohol, gambling, extra-marital sex and same-sex activity, and it applies to visitors too. None of this applies in Bali.
- Carry your ID. You must carry your passport or your stay permit. A photo on your phone is useful, but the original is what counts.
- Immigration law is separate. Breaking local rules, working on a tourist visa or overstaying can lead to deportation and a ban, whatever the criminal code says. Our visa guide explains the limits.
- Wildlife and souvenirs. Buying or exporting protected animals or their parts is a crime, so avoid shell, coral and animal souvenirs.
If you are arrested, ask for your embassy or consulate to be told. Payments requested after an arrest are a known problem, and agreeing to one is entirely your own decision. Our safety guide lists emergency numbers.
Before you travel
Your ticks are saved on this device.
Paperwork
On the ground
Read next: common Bali scams and renting a scooter legally.
Indonesia criminal code FAQ
Can unmarried couples share a hotel room in Bali?
Yes. The code only allows a case if a spouse, a parent or a child files a complaint. Hotels are not required to check marriage certificates.
Does the new criminal code apply to tourists?
Yes. It applies to everyone in Indonesia, but the relationship offences still need a complaint from a close family member.
When did the new Indonesian criminal code start?
It came into force on 2 January 2026, three years after it was passed.
Who can report sex outside marriage in Indonesia?
Only a husband or wife if the person is married, or a parent or a child aged 16 or older if they are not.
Is Bali safe for LGBT+ travellers under the new code?
Same-sex activity is not a crime outside Aceh, and Bali is generally relaxed, but discretion in public is wise and laws on pornography have been used against LGBT+ events.
Do I need a marriage certificate to travel to Bali?
No. Nothing in the code asks visitors, hotels or villas to show one.
Ready to book?
The usual order: flights, first nights, airport pickup, insurance, data.
Partner links. Prices are approximate.
Official sources
- JDIH BPK: Law No. 1 of 2023 on the Criminal Code(opens in a new tab)
- GOV.UK: Indonesia travel advice, safety and security(opens in a new tab)
Updated
Aleks & Ria
Authors of ogo!bali
Built by an expat and an Indonesian local, ogo!bali delivers clear, fresh advice from both sides of the island. We blend local insider secrets with practical travel tips to help you explore with confidence.