Where is sex before marriage illegal?
Indonesia is the latest country to ban sex outside of wedlock

Indonesia’s parliament has approved a new criminal code that bans sex outside of marriage, with a jail term of up to a year as punishment.
The new law “applies equally to locals and to foreigners living in Indonesia, or visiting holiday destinations such as Bali”, said the BBC.
Laws against sex outside of wedlock have also hit the headlines because Qatar, the host of the 2022 football World Cup, has a long-standing ban on sex between unmarried people.
Subscribe to The Week
Escape your echo chamber. Get the facts behind the news, plus analysis from multiple perspectives.

Sign up for The Week's Free Newsletters
From our morning news briefing to a weekly Good News Newsletter, get the best of The Week delivered directly to your inbox.
From our morning news briefing to a weekly Good News Newsletter, get the best of The Week delivered directly to your inbox.
Here are the countries that have legislated against sex outside of marriage.
Qatar
The nation’s “Zina laws” that criminalise unmarried sex are “based on Islamic legal tradition that classifies sex outside of marriage, pregnancy out of wedlock, and adultery as crimes that are punishable by imprisonment of up to one year”, said Read Nigeria Network.
After any sentence is served, the offender can be deported, according to UK government advice.
Saudi Arabia
In the Gulf state, the authorities require four people to have witnessed the actual act of extra-marital penetration. If this requirement is met, flogging is a common punishment.
Sign up for Today's Best Articles in your inbox
A free daily email with the biggest news stories of the day – and the best features from TheWeek.com
However, noted Sky News, in 2019 the Saudis allowed foreign men and women to share hotel rooms without proving they are married “in a move away from its traditionally strict social code and in order to grow its tourism industry”.
The Philippines
Adultery is defined as consensual sexual intercourse between a married woman and a man who is not her husband, as well as a man cohabiting with a woman who is not his wife. Both are considered crimes under the Revised Penal Code of the Philippines, according to the Sexual Rights Initiative.
Iran
The Iranian Islamic penal code stipulates that “the penalty for fornication is flogging, that is 100 strokes of the lash, for unmarried male and female offenders”, according to Article 83, with stoning also on the statute book as a punishment.
However, noted IranWire, since 2013 Iranian judges have been permitted to “replace a sentence of stoning to death” with “execution by hanging at their discretion”.
Afghanistan
Taliban officials are using a manual that prohibits sex outside of marriage – which the penal code adopted by the previous government also prohibited, said Human Rights Watch.
In August 2010, a couple were stoned to death in Kunduz province in northern Afghanistan after being found guilty of adultery, reported The Guardian.
Pakistan
Premarital sex and adultery are crimes under the Hudood Ordinances, which sets a maximum penalty of death for adultery. However, it is believed that imprisonment and corporal punishment have been the most serious punishments imposed for the offence to date.
Sudan
Under the country’s Sharia law, premarital sex and adultery are punishable by stoning the accused to death.
In 2012 Intisar Sharif Abdallah, a mother of one, was found guilty of adultery and sentenced to death by stoning. However, noted Amnesty International, the court of appeal overturned the sentence and she walked free after charges were dropped at her retrial.
Egypt
A married woman who commits adultery can be imprisoned for up to two years, said the Sexual Rights Initiative. Any husband who commits adultery in the marital house can be jailed for up to six months.
In 2017 Doaa Salah, an Egyptian TV presenter, was sentenced to three years in prison for merely discussing premarital sex on TV, reported The Guardian. She was convicted of “outraging public decency” in conservative Egyptian society.
Malaysia
Legislation in Malaysia makes it illegal for unmarried Muslims to meet behind closed doors or engage in premarital sex, under the threat of up to six months in prison.
Sharia laws apply to Muslims, who account for nearly two-thirds of Malaysia’s population, in all personal matters. However, non-Muslims are covered by civil laws and are not subject to Islamic courts.
In 2009, 26 unmarried Muslim couples were arrested in hotel rooms during Operation Valentine. The following year, three Malaysian women were caned for having sex outside marriage, said The Guardian.
Chas Newkey-Burden has been part of The Week Digital team for more than a decade and a journalist for 25 years, starting out on the irreverent football weekly 90 Minutes, before moving to lifestyle magazines Loaded and Attitude. He was a columnist for The Big Issue and landed a world exclusive with David Beckham that became the weekly magazine’s bestselling issue. He now writes regularly for The Guardian, The Telegraph, The Independent, Metro, FourFourTwo and the i new site. He is also the author of a number of non-fiction books.
-
5 jackbooted cartoons about L.A.'s anti-ICE protests
Cartoons Artists take on National Guard deployment, the failure of due process, and more
-
Some of the best music and singing holidays in 2025
The Week Recommends From singing lessons in the Peak District to two-week courses at Chetham's Piano Summer School
-
Sudoku medium: June 14, 2025
The Week's daily medium sudoku puzzle
-
After Israel's brazen Iran attack, what's next for the region and the world?
TODAY'S BIG QUESTION Following decades of saber-rattling, Israel's aerial assault on Iranian military targets has pushed the Middle East to the brink of all-out war
-
Israel strikes Iran, killing military and nuclear chiefs
Speed Read Israeli officials said the attack was a 'preemptive' strike on Iran's nuclear program
-
Why Israel is attacking Iran now
The Explainer A weakened Tehran and a distracted Donald Trump have led Benjamin Netanyahu to finally act against long-standing foe
-
The France-Indonesia push for an Israeli-Palestinian two-state solution
Talking Points Both countries have said a two-state solution is the way to end the Middle East conflict
-
Israel-US 'rift': is Trump losing patience with Netanyahu?
Today's Big Question US president called for an end to Gaza war and negotiated directly with Hamas to return American hostage, amid rumours of strained relations
-
What happens if tensions between India and Pakistan boil over?
TODAY'S BIG QUESTION As the two nuclear-armed neighbors rattle their sabers in the wake of a terrorist attack on the contested Kashmir region, experts worry that the worst might be yet to come
-
Why Russia removed the Taliban's terrorist designation
The Explainer Russia had designated the Taliban as a terrorist group over 20 years ago
-
Sudan's civil war two years on: is there any hope for peace?
Today's Big Question Very small chance of significant breakthrough at London talks today as the warring factions are not included