Indonesia’s New Criminal Code and Travellers: Unmarried Couples, Cohabitation and Hotels (in Force Since January 2026)

Is sex outside marriage illegal in Indonesia for tourists? On paper, yes. Article 411 of the new criminal code 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 without being married with up to six months or a fine. Both apply to foreign visitors, but a case can only start when a spouse, or a parent or child, files a complaint. In a search on 9 November 2026 we found no case of a tourist being prosecuted under either article.

Indonesia’s new criminal code (Law No. 1 of 2023) came into force on 2 January 2026. It makes sex outside marriage and living together as a couple without being married criminal offences, and it applies to foreign visitors as well as Indonesians. If you are an unmarried couple, or friends travelling together, and you are booking a room in Bali or Lombok, this is worth understanding before you go.

The short answer is that both offences can only be investigated after a complaint from a spouse, a parent or a child. Hotels, police and neighbours cannot start a case on their own. For this article we read, on 9 November 2026, reports explaining the articles, an AP report, and government travel advice from the UK, Australia, Ireland and Canada. This is a summary, not legal advice.

It is written for people deciding whether to travel to Indonesia, couples choosing where to stay, and anyone who wants a short explanation of what changed.

Information as of November 2026

What this article covers

  • ✓When the new code took effect and what changed
  • ✓The articles on sex outside marriage and cohabitation, and the penalties
  • ✓Who can complain, and how a case starts
  • ✓Whether hotels check marital status
  • ✓Other provisions travellers should know

In short

The new criminal code took effect on 2 January 2026. Sex outside marriage carries up to one year in prison or a fine, and living together as a couple without being married carries up to six months or a fine. Both apply to travellers, but only a spouse, or a parent or child, can file the complaint that starts a case. We found no rule requiring hotels to ask for proof of marriage.

Contents

When did the new code take effect, and what changed?

The new code is Law No. 1 of 2023. It took effect on 2 January 2026, as set out in its Article 624 (Kontan, 9 January 2026). AP reported on 2 January 2026 that the 345-page code replaces the colonial-era Dutch code after a three-year transition period.

The two articles most relevant to travellers are Article 411 (sex outside marriage) and Article 412 (cohabitation). There are also articles on insulting the president, blasphemy and protests without notice, covered further down. Drug offences fall under a separate law and are punished severely; see our guide to magic mushrooms and cannabis on the Gili Islands.

Is it an offence for an unmarried couple to share a room?

What the articles cover is sex (Article 411) and cohabitation (Article 412), not the act of sharing a room as such. According to CNA Indonesia (6 January 2026), Article 411 punishes sexual intercourse with someone who is not your spouse with up to one year in prison or a category II fine (about Rp10 million, roughly US$560). Article 412 punishes “living together as husband and wife outside marriage” with up to six months in prison or a category II fine.

Both are complaint-based offences. For a married person, only their spouse can complain. For an unmarried person, only a parent or a child can. Kontan adds that a child must be at least 16 and that outside parties cannot file. The Minister of Law, Supratman Andi Agtas, put it this way: those who may complain are “the husband or wife, or the parents” (CNA Indonesia). According to hukumonline (7 June 2023), a complaint under Article 411 can be withdrawn until the court hearing begins.

Figure: How a case under Articles 411 and 412 can start

1 Sex outside marriage or cohabitation Up to 1 year (411) or 6 months (412) in prison, or a fine 2 Is there someone entitled to complain? A spouse if married; a parent or child (16 or older) if not 3 That person files a complaint A complaint under 411 can be withdrawn before the hearing starts No complaint, no investigation Hotels, police and neighbours cannot complain on their own

Take care

  • If one of you is married to someone else, that spouse can complain
  • Parents or children travelling with you are among the people who can complain
  • The US dollar figure is a rough conversion at US$1 to about Rp17,800 (September 2026)

Does the ban on sex outside marriage apply to foreign tourists?

Yes. AP reported that the code “applies to citizens and foreign visitors”, and that the government says the complaint requirement “prevents arbitrary enforcement, including against tourists”. Ireland’s travel advice (updated 10 September 2026) says the law “applies equally to Indonesian and foreign residents as well as tourists, however enforcement is complaint-based, requiring reports submitted by close family members”.

The UK government’s travel advice (updated 18 September 2026) says the code “imposes penalties for cohabitation and sex outside of marriage” if “certain members of either party’s immediate family file a complaint”. Australia’s Smartraveller advice says that for married travellers, “authorities can act on a complaint submitted by your spouse”, and for unmarried travellers, by a child or parent (as quoted by SBS on 19 December 2025). While you are in Indonesia, Indonesian law applies to you.

← Scroll sideways to see the whole table

ArticleWhat it coversMaximum penaltyWho can complain
411Sex with someone who is not your spouse1 year in prison or a category II fineSpouse, or parent or child
412Living together as a couple without being married6 months in prison or a category II fineSpouse, or parent or child

A category II fine is about Rp10 million (CNA Indonesia). Children must be 16 or older (Kontan). Withdrawal of a complaint is from hukumonline’s explanation of Article 411.

Will a hotel ask for proof of marriage?

When the law was passed in December 2022, the head of Bali’s provincial tourism office said that, after talks with hotel and tourism associations, “hotels will not ask about marital status (documents)” (Bisnis.com, citing CNA). Around the same time, Maulana Yusran, deputy chief of Indonesia’s tourism industry board, called the new rules “totally counter-productive” (Reuters, 7 December 2022; SBS repeated his comments on 19 December 2025). Both statements date from when the law was passed, before it took effect, and do not show how hotels treat guests now.

In a search on 9 November 2026 we found no announcement by Lombok’s hotels or the provincial government that marital status would be checked after the code took effect. What Indonesian hotels do ask for is your passport, because they are required to report foreign guests to immigration. For choosing where to stay, see our guide to Lombok hotels and villas.

What about same-sex couples?

The UK’s travel advice (updated 18 September 2026) says same-sex sexual activity is illegal in Aceh under Sharia law, and that there have been reports across Indonesia of police arresting people at LGBT+ events. Canada’s travel advice (updated 4 November 2026) says Indonesian national law does not criminalise sexual acts or relationships between people of the same sex, but some provinces prohibit and punish them under local laws. Ireland gives Aceh in northern Sumatra as an example and advises LGBTQ+ visitors to use “caution and discretion at all times”. AP reported that a proposed article criminalising gay sex was dropped from the new code.

The reports and travel advice we read did not make clear how Articles 411 and 412 apply to same-sex couples. TravelMole’s report on the Australian government’s update (23 December 2025) describes the penalties as covering sex outside marriage “between a man and a woman”.

Which other provisions should travellers know about?

According to AP, insulting the president, the vice president or state institutions carries up to three years in prison, and a case for insulting the president requires a complaint from the president. Blasphemy against the core teachings of the six recognised religions carries up to five years. Abortion remains banned, except where the mother’s life is at risk or for pregnancies under 12 weeks resulting from rape. SBS also lists staging protests without notification and spreading views contrary to the state ideology.

In everyday travel, the points to watch are what you photograph and post online and how you behave at places of worship. Our Indonesia safety guide covers the wider picture.

Figure: Provisions of the new code most relevant to travellers

1 Sex outside marriage (Art. 411) Maximum penalty 1 year in prison or about Rp10 million fine Complaint by Spouse, or parent or child 2 Cohabitation (Art. 412) Maximum penalty 6 months in prison or about Rp10 million fine Complaint by Spouse, or parent or child 3 Other articles Insult Insulting the president or state institutions: up to 3 years Blasphemy Against recognised religions: up to 5 years

A note from Sekotong

When you book, check whether the form asks for the names of everyone staying and what you will need to show at check-in. If anything is unclear, ask the property in writing before you book and keep the reply.

Limitations, and who should take extra care

First, the limitations. The code has been in force for less than a year, and in a search on 9 November 2026 we found no case of a tourist being prosecuted under Articles 411 or 412. How the courts read the articles, for example what counts as “living together”, will be shaped by future cases. This article summarises reports and travel advice and is not legal advice.

Take extra care if one of you is married to someone else, if you are travelling with a parent or an adult child, or if you plan to live in the same house for a long time. If you are thinking of a longer stay, see long stays on Lombok.

At Semelar Beach Village, what you can book now is our stay programme: 3 nights/4 days to 5 nights/6 days at Rp4,800,000 per person (about US$270). It includes airport transfers, transport during your stay, a guide, a welcome dinner and a massage; flights and accommodation are not included. Sekotong is about 1 hour 10 minutes by car from Lombok International Airport. All 13 villas are under construction, and the first is due to be completed in early 2027 (plan as of August 2026).

Frequently asked questions

Q. Is sex before marriage illegal in Indonesia for tourists?

Under Article 411 of the new criminal code, sex with someone who is not your spouse carries up to one year in prison or a category II fine, and it applies to foreign visitors. A case can only be investigated after a complaint from a spouse, or from a parent or child.

Q. Has any tourist been prosecuted for sex outside marriage in Indonesia?

In a search on 9 November 2026 we found no case of a tourist being prosecuted under Articles 411 or 412. The code has been in force since 2 January 2026, so there are few examples of how the courts apply it.

Q. When did Indonesia’s new criminal code take effect?

On 2 January 2026. It is Law No. 1 of 2023 and came into force after a three-year transition period.

Q. Can an unmarried couple be arrested for staying in a hotel together?

The offences are sex outside marriage (Article 411) and cohabitation (Article 412). Neither can be investigated without a complaint from a spouse, or from a parent or child. Hotels and police cannot complain on their own.

Q. Does the law apply to foreign tourists?

Yes. AP and Ireland’s travel advice say it applies to tourists in the same way, and that enforcement depends on a complaint from close family.

Q. Will my hotel ask for a marriage certificate?

In 2022, before the code took effect, Bali’s tourism head said hotels would not ask about marital status. We found no announcement that Lombok hotels check marital status after the code took effect.

Q. How large is the fine?

Both articles carry a category II fine of about Rp10 million (roughly US$560). The prison terms are up to one year under Article 411 and up to six months under Article 412.

Summary

Indonesia’s new criminal code took effect on 2 January 2026 and made sex outside marriage (Article 411) and cohabitation (Article 412) offences. They apply to travellers, but a case can only start with a complaint from a spouse, or from a parent or child; hotels and police cannot complain on their own.

At check-in you will be asked for your passport rather than a marriage certificate. Other articles cover insulting the president, blasphemy and protests without notice. As the code is new and there are few examples of how it is applied, read your own government’s travel advice before you leave.

Related reading

More on this topic: Indonesia Travel Basics. Adding three nights on Lombok to a Bali trip: Stay Programme Itineraries.

Aerial view of the coast, the coral reef and a boat offshore

SEMELAR BEACH VILLAGE

Come and spend some time in the Sekotong village we call home

About 1 hour 10 minutes by car from Lombok International Airport. We offer a stay programme of 3 nights/4 days or more, with island trips by local boat and sunsets at SAKURA CAFE. The villas are due to be completed in stages from 2027.

Sources used for this article
  • AP (via Manila Bulletin), “Indonesia’s new penal code takes effect, marking historic break with colonial law” (entry into force, application to foreigners, other provisions; 2 January 2026)https://mb.com.ph/2026/01/02/indonesias-new-penal-code-takes-effect-marking-historic-break-with-colonial-law
  • CNA Indonesia, “Kumpul kebo, zina, kohabitasi: hukuman dan aduan di KUHP baru” (Articles 411 and 412, category II fine, minister’s comments; 6 January 2026)https://www.cna.id/indonesia/kumpul-kebo-zina-kohabitasi-hukuman-aduan-kuhp-baru-42851
  • Kontan, “Berlaku mulai 2 Januari 2026, siapa saja yang berhak melaporkan kasus kumpul kebo” (date of effect, who can complain, children 16 or older; 9 January 2026)https://nasional.kontan.co.id/news/berlaku-mulai-2-januari-2026-siapa-saja-yang-berhak-melaporkan-kasus-kumpul-kebo
  • hukumonline, “Melihat Pengaturan Perzinaan, Kohabitasi, dan Perkosaan dalam KUHP Baru” (text of Article 411, withdrawal of complaints; 7 June 2023)https://www.hukumonline.com/berita/a/melihat-pengaturan-perzinaan–kohabitasi–dan-perkosaan-dalam-kuhp-baru-lt647fe9d311227/?page=all
  • SBS News, “The awkward new rules about to kick in for travellers to Bali” (Smartraveller wording, tourism body comments; 19 December 2025)https://www.sbs.com.au/news/article/the-awkward-new-rules-about-to-kick-in-for-travellers-to-bali/0jhqd1pj4
  • Bisnis.com, “KUHP Baru, Pengelola Hotel di Bali Tidak Minta Bukti Pernikahan kepada Turis” (Bali tourism head on marital status; 8 December 2022)https://kabar24.bisnis.com/read/20221208/16/1606610/kuhp-baru-pengelola-hotel-di-bali-tidak-minta-bukti-pernikahan-kepada-turis
  • Directorate General of Immigration, Indonesia, “Pengelola Penginapan Wajib Lapor Keberadaan Tamu Asing Lewat APOA” (hotels report foreign guests; 26 March 2025)https://imigrasi.go.id/berita/pengelola-penginapan-wajib-lapor-keberadaan-tamu-asing-lewat-apoa
  • Ireland Department of Foreign Affairs, “Indonesia travel advice” (application of the law, complaint-based enforcement, LGBTQ+ advice; updated 10 September 2026)https://api.ireland.ie/en/dfa/overseas-travel/advice/indonesia/
  • Government of Canada, “Travel advice and advisories: Indonesia” (same-sex relations and provincial laws; updated 4 November 2026)https://travel.gc.ca/destinations/indonesia
  • UK government, “Foreign travel advice: Indonesia, Safety and security” (cohabitation and sex outside marriage, family complaints, Aceh, LGBT+; updated 18 September 2026)https://gov.uk/foreign-travel-advice/indonesia/safety-and-security
  • Reuters (via FX Empire), “Tourists ‘think twice’ about Indonesia following criminal code revisions” (tourism industry board comments; 7 December 2022)https://www.fxempire.com/news/article/tourists-think-twice-about-indonesia-following-criminal-code-revisions-1222621
  • TravelMole, “Australia highlights travelers to be more cautious as Indonesia new criminal code comes into force” (Australian travel advice update; 23 December 2025)https://www.travelmole.com/news/australia-indonesia-new-criminal-code
Let's share this post !
A boat and a person on the beach on an island-hopping morning

SEMELAR BEACH VILLAGE

Stay programme in Sekotong, Lombok

From 3 nights, Rp4,800,000 (about US$270) per person, with airport transfers and a guide included; flights and accommodation are extra.

Author of this article

Contents