Libya Laws for Foreigners: The Rules That Apply to You
Libya's laws are strict and enforced by a mix of police, security agencies and armed groups. The rules that matter most for a foreigner, and how to stay inside them.
Last updated 16 Nov 2026 · 8 min read
Libya's laws are strict, and they're enforced in a system where police, security agencies and armed groups all play a part. For a foreigner working in Tripoli or Benghazi, the most important legal facts are simple: carry your passport, never drink, keep relationships professional, don't photograph military sites, get your paperwork right, and stay well away from politics. Behind each of those sits a specific rule, and behind the rules sits a detention system that Human Rights Watch describes as marked by overcrowding, torture and arbitrary detention. This article goes through the rules that matter, based on the FCDO's travel advice and HRW's 2026 report. It isn't legal advice, and your organisation's legal and security teams come first.
The legal backdrop
Libya has been divided since 2014 between the Government of National Unity in Tripoli and the Libyan Arab Armed Forces in the east and south. Both apply Libyan law, but enforcement depends heavily on who controls a given area. HRW reports that the Justice Ministry nominally oversees prisons, but armed groups and security agencies run many detention facilities, and military courts continue to try civilians, mostly behind closed doors. As of December 2024, 105 people had confirmed death sentences, though Libya hasn't carried out an execution since 2010. The penal code and a 2014 counterterrorism law restrict speech and dissent.
For foreigners, the FCDO says British nationals have been detained by intelligence services and armed groups in Tripoli and Benghazi, and that embassy help is limited. There's no in-person British consular service in Libya; urgent cases go to the embassy in Tunis.
Carry your passport
This is the rule people forget. The FCDO says you must carry your passport, and that foreigners have been arrested for lacking correct documents. Keep it on you, with copies elsewhere. Libya doesn't recognise dual nationality, the FCDO adds, so dual nationals of Libyan origin may be treated as Libyan and get even less help from their other country.
This is one of the modules in the Libya field guide.
Alcohol and drugs
Alcohol and drugs are both illegal in Libya, and use, possession and trafficking are punished, the FCDO says. It adds a specific warning: illicit alcoholic drinks can contain methanol, which can be fatal and can't be detected by taste or smell. Don't bring alcohol in, don't buy it, and decline it politely if it's ever offered. Check your prescription medicines and carry them in original packaging with a doctor's letter.
Relationships and sexuality
HRW reports that Libya's penal code prohibits all sexual acts outside marriage, including consensual same-sex relations, punishable by flogging and up to five years in prison. The FCDO says same-sex activity is illegal for men and women, that public displays of affection between same-sex couples aren't tolerated, and that arrests have happened.
Other provisions show how high the stakes are for Libyan women in particular. HRW reports that the penal code allows reduced sentences for a man who kills or injures a female relative over suspected extramarital relations, that a rapist can escape prosecution by marrying the victim, and that a 2010 law requires Libyan women to get permission to marry a non-Libyan. This guide doesn't help with romance with Libyans, and these laws are a large part of why: the risk falls hardest on the Libyan woman and her family.
Religion
Attempting to convert Muslims to another religion is illegal, the FCDO says. Don't proselytise and don't carry religious material for distribution. During Ramadan, expected from about 8 February to 8 March 2027, eating, drinking, smoking, chewing gum and playing loud music in public in daytime aren't permitted, and the FCDO notes that offence is more likely in this period, so follow local dress codes closely.
Photography, journalism and interviews
You need permission to take photographs near military facilities, the FCDO says. Journalists need press accreditation from the government authorities, and journalists have been detained. If your work involves interviews, research or documentation, make sure the right permissions are in place and that your organisation has cleared the activity. Don't photograph checkpoints, armed personnel or government buildings, and ask before photographing anyone.
Business procedures
The FCDO warns that business travel to Libya involves complex bureaucratic procedures, and that failing to comply risks intimidation or detention. That makes paperwork a safety issue, not just an administrative one. Visas, work permits, company registrations, customs documents and permits for specific activities all need to be right. Work with a reputable local lawyer or fixer, keep copies of everything, and don't cut corners because someone tells you it's normal.
Speech, protest and politics
The penal code and the counterterrorism law restrict speech and dissent, HRW reports, and the Civil Society Commission can dissolve groups or freeze their accounts without a court order. In May 2025, armed groups used live ammunition to disperse protesters in Tripoli. Stay away from protests. Don't post about Libyan politics, armed groups or the east–west divide. In meetings, leave politics to your organisation's official channels.
Driving and roads
The FCDO calls road travel highly dangerous, with carjacking, robbery and mines off-road, and says road accidents are common and emergency response may be limited. Most organisations don't let staff drive themselves. If you're involved in an accident, follow your organisation's procedure and let your driver and security team handle it.
Where enforcement comes from
One feature of Libya's legal landscape is that the people enforcing rules may not be police. Armed groups provide security in many areas, run detention facilities and staff checkpoints. Intelligence services detain foreigners. The FCDO lists private security workers, journalists and NGO staff as groups at higher risk. That's why your organisation's security office matters so much: it knows which group controls which area, and how they behave.
A compact list for your first week
- Carry your passport everywhere.
- No alcohol or drugs, ever; illicit drink can contain methanol.
- No relationships with Libyans; all sex outside marriage is illegal.
- No proselytising.
- No photos near military facilities without permission; no checkpoints or armed personnel.
- Paperwork complete and copies kept.
- No protests, no political posts.
- Respect Ramadan in public.
- Don't drive yourself.
- Know how to reach the embassy in Tunis, or your own country's equivalent.
If you're detained
Stay calm and polite. Ask to contact your organisation. Answer simply and truthfully; don't speculate. Don't sign documents you can't read without asking for a translation. Your organisation's crisis team and, for British nationals, the embassy in Tunis will take it from there, though the FCDO is clear its help is limited. Make sure your family knows who to call.
Your status
Diplomats have privileges and immunities that other foreigners don't. UN staff have their own status arrangements. NGO staff and business visitors usually have neither, which is one reason the FCDO lists NGO workers, journalists and private security staff among those at higher risk of detention. Know exactly what your status is, what documents prove it, and what your organisation will do if it's questioned.
Contracts and disputes
For companies, the legal risk isn't only criminal. Contracts sit inside a system split between two authorities, with courts and enforcement that can be slow or unpredictable. Get advice from a vetted local lawyer, think carefully about governing law and dispute resolution, and keep complete records of every payment and agreement.
Practical habits
Most foreigners who get into trouble don't set out to break a rule. They forget their passport, accept a drink at a private party, take a photo near a guarded building, carry a package for someone, or post a comment about politics. Before you leave your accommodation, check you have your passport. Before you raise your phone, ask what's in the frame. Before you carry anything for anyone, ask what it is. Before you post, ask who could read it.
Checkpoints
Checkpoints in Tripoli and elsewhere may be staffed by police, security agencies or armed groups. Keep your passport ready, stay calm, keep your hands visible and your phone away, and let your driver lead. Answer questions simply and truthfully. Don't photograph anything. Report every unusual stop to your security office afterwards.
Talk to your Libyan colleagues
Libyan colleagues know where the practical lines are in each district and office better than any guide. If you're unsure whether something is sensitive, ask privately, and respect the answer even if they can't fully explain it.
Rules your organisation adds
Most organisations in Libya set rules that go well beyond the law: curfews, movement restrictions, banned districts, rules on visitors and relationships, social media policies. Treat them as part of the legal landscape. Breaking them may not lead to an arrest, but it can lead to a flight home, and it can put colleagues at risk. When you're unsure, ask before you act, and write down the advice you were given.
Accountability is changing slowly
Libya accepted the International Criminal Court's jurisdiction on 12 May 2025 over alleged crimes from 2011 to the end of 2027, HRW reports, and a suspect in the Libya investigation was surrendered to The Hague in December 2025. That matters for the long-term picture of armed groups and detention. It doesn't change the day-to-day reality for foreigners, which is that outside help is limited and caution is the best protection.
If a colleague gets into trouble
If a colleague is stopped, questioned or detained, don't try to resolve it yourself by going to the checkpoint or the facility. Inform your organisation's security office immediately, give them every detail you have, and follow their instructions. Well-meaning interventions by colleagues can make things worse. The same applies to Libyan colleagues: report, don't improvise.
Rules that change
Libya's rules and their enforcement change with the political and security picture, and they differ between Tripoli and the east. Check the FCDO's advice before every trip, read your organisation's security updates when they arrive, and ask colleagues what has changed since your last visit. What was tolerated last year may not be now, and what's routine in one city may draw attention in another. When in doubt, choose the more cautious option and ask afterwards.
Keep a note of the advice you receive, who gave it and when, so that you and your colleagues can rely on it consistently.
Share it with whoever replaces you, so the knowledge stays with the team rather than leaving with you.
Good records are a quiet form of protection for everyone involved.
The bottom line
Libya's rules for foreigners are strict but clear: passport always, no alcohol, no relationships with Libyans, no proselytising, no photos near military sites, correct paperwork, no politics. What makes them serious is the system behind them: detention by intelligence services and armed groups, closed military courts, and limited outside help. Follow the rules, follow your organisation's stricter ones, and keep your security office close. The rest of this series covers the official advice, doing business and meeting officials.
Common questions
Do I need to carry my passport in Libya?
Yes. The FCDO says you must, and foreigners have been arrested for lacking correct documents.
Is alcohol legal in Libya?
No. Alcohol and drugs are illegal, and the FCDO warns illicit drinks can contain deadly methanol.
Is sex outside marriage illegal in Libya?
Yes. Human Rights Watch reports the penal code prohibits all sexual acts outside marriage, punishable by flogging and up to five years in prison.
Can I take photos in Libya?
You need permission near military facilities, and journalists need accreditation.
Does Libya recognise dual nationality?
No, which the FCDO says further limits help for dual nationals of Libyan origin.
From the Journal: how the high-end dating apps compare
Get the update by email
The monthly country update — what changed in the guides, and what's on next month. No spam, one email a month.