The new law will take three years to come into effect
Sex outside marriage has been banned in Indonesia - for locals and tourists.
Anyone who is found guilty of breaking the new law puts themselves at risk of a year in prison.
Meanwhile couples living together who aren't married can be put behind bars for 6 months.
It will take three years to come into effect, but some Indonesians fear it'll scare tourists away from holiday spots like Bali.