Home / Living in Malaysia / Public Safety / Self-defence

🧭 Practical ✓ Published: 3 Aug 2026 4 min read Next review 3 Aug 2027

Self-Defence Law in Malaysia

The Penal Code recognises the right of private defence, but it is limited to actions that are reasonable and do not exceed what is necessary. This guide explains when the law permits you to fight back and how far you may go. This is not legal advice.

30-second answer Reviewed 3 Aug 2026

Malaysian law recognises the right of private defence under Sections 96 to 106 of the Penal Code (Act 574): anything done in the exercise of this right is not an offence. However, it is strictly limited. The action must be reasonable and must not exceed what is necessary for defence (Section 99(4)), and may only extend to causing death in six specific circumstances under Section 100, such as a reasonable apprehension of death, grievous hurt, or an intention to rape. This guide is general information only and not legal advice; seek a lawyer's advice for any real situation.

  • Section 96 of the Penal Code: anything done in lawful private defence is not an offence.
  • Section 100 lists only six circumstances in which the defence of the body may extend to causing the attacker's death.
  • Section 99(4): the right of defence never extends to inflicting more harm than is necessary for the purpose of defence.
  • Section 99(3): there is no right of private defence where there is time to seek the protection of the public authorities.
  • Section 102: the right begins as soon as a reasonable apprehension of danger arises and continues only as long as that threat persists.

Who this applies to: Members of the public in Malaysia who want to understand the legal limits of self-defence, including homeowners or business owners and law students.

On this page
Full explanation ≈4 min

An intruder attacks you in your own home in the middle of the night — at that moment, does Malaysian law permit you to fight back? Yes, but under strict conditions, and the line between lawful defence and a crime is thinner than many people assume.

Not legal advice. This guide explains the provisions of the Penal Code in general terms for educational purposes. Every incident is assessed on its own facts by the courts. If you are involved in any incident, seek advice from a registered lawyer immediately.

What is the right of private defence in law?

The Penal Code (Act 574) provides for the “right of private defence” in Sections 96 to 106. Section 96 states clearly that anything done in the exercise of this right is not an offence. Section 97 gives every person the right to defend two things, subject to the limits in Section 99:

  • one’s own body or the body of any other person, against any offence affecting the human body; and
  • property (movable or immovable), whether one’s own or another’s, against theft, robbery, mischief, or criminal trespass, or an attempt to commit these.

When can I go as far as causing death?

This is the most important limit. Under Section 100, the right to defend the body extends to causing the attacker’s death only in the following six circumstances:

Circumstance under Section 100Meaning
(a) An assault that reasonably causes an apprehension of deathYour life is in real danger
(b) An assault that reasonably causes an apprehension of grievous hurtRisk of serious injury
(c) An assault with the intention of committing rape
(d) An assault with the intention of gratifying unnatural lust
(e) An assault with the intention of kidnapping or abducting
(f) An assault with the intention of wrongfully confining a personIn circumstances where the victim cannot seek the assistance of the authorities

If the assault does not fall within this list, Section 101 only permits you to harm the attacker — not to kill them.

What limits must I observe?

Section 99 sets firm boundaries:

  • Reasonable proportion. The right of defence never extends to inflicting more harm than is necessary for the purpose of defence (Section 99(4)). An excessive response may itself be a crime.
  • Use official channels first. There is no right of private defence where there is still time to seek the protection of the public authorities (Section 99(3)).
  • Against public servants. There is no right of defence against a public servant acting in good faith under colour of their office, unless the action gives rise to a reasonable apprehension of death or grievous hurt (Section 99(1)).

When does this right begin and end?

Section 102 clarifies the timing: the right begins as soon as a reasonable apprehension of danger to the body arises from an attempt or threat — even though the offence has not yet been committed — and it continues only as long as that apprehension of danger persists. This means you cannot keep attacking after the threat has ended; action that continues beyond that point may be regarded as a retaliatory attack, not defence.

Can I defend property?

Yes. Section 103 permits action extending to causing death when defending property only for certain offences: robbery, housebreaking by night, mischief by fire against a building used as a dwelling or as a place for the custody of property, or theft/mischief/house-trespass in circumstances that reasonably cause an apprehension of death or grievous hurt. For other cases, Section 104 only permits harm, not death. Section 106 protects you if, while defending yourself against a deadly assault, you are forced to run the risk of harming an innocent person.

How do the courts assess this defence?

Because Section 96 provides that no offence is committed when this right is lawfully exercised, private defence operates as a complete defence — if accepted, it acquits the accused. But the burden and the assessment are heavy: the courts weigh each case on its own facts, focusing on the reasonableness and proportion of the action relative to the threat. In practice, legal commentary outlines factors such as whether the person defending had “clean hands”, the existence of real or reasonably believed danger, the absence of a safe escape route, and whether the force used was truly necessary — with fleeing generally preferred over fighting unless there is no other choice (Aaron Mathews Advocates & Solicitors, “Self-Defence 101”). This means a response that goes beyond what is necessary can cause the defence to fail.

What’s next

The right of private defence can be a complete defence in law, but it is assessed case by case by the courts based on the reasonableness and proportion of your action. This guide is not legal advice. If you have ever been involved in such an incident, seek legal advice immediately and preserve any evidence. To understand terms such as grievous hurt or criminal trespass more precisely, refer to the full text of the Penal Code (Act 574) on the official e-LoM portal of the Attorney General’s Chambers.

Frequently asked 2
Can I kill an intruder to defend myself?

Only in certain circumstances. Section 100 of the Penal Code permits action extending to causing death if the assault gives rise to a reasonable apprehension of death or grievous hurt, or involves an intention to rape, kidnap or abduct, gratify unnatural lust, or wrongfully confine the victim in circumstances where they cannot seek the assistance of the authorities. Outside these circumstances, Section 101 only permits you to harm the attacker, not to kill them. This is not legal advice.

Is self-defence still lawful once the threat has ended?

No. Under Section 102, the right to defend the body continues only as long as a reasonable apprehension of danger persists. Action that continues after the threat has ended may be regarded as a counter-attack, not defence.

Sources & history 2 sources
⚑ Awaiting expert verification

The following are deliberately unstated or described only qualitatively until confirmed by a subject-matter expert:

  • Tahap sensitivity kekal 'none' menepati skema semasa, tetapi penyemak manusia patut menimbang sama ada topik penggunaan daya maut wajar diberi flag sensitiviti lebih tinggi.
  • Sahkan nombor dan teks Seksyen 96-106 terhadap cetakan semula rasmi Akta 574 terkini (portal e-LoM AGC) sebelum penerbitan.
  • Sahkan proposisi doktrin 'pembelaan lengkap' dan penilaian kemunasabahan/kadar kes demi kes terhadap kes terkini yang mengikat sebelum penerbitan.
  • Sahkan kelayakan sumber sekunder (firma guaman) dan kemas kini kepada 'empat justifikasi kardinal' jika mahkamah telah memperhalusinya.

Sources

  1. Kanun Keseksaan (Akta 574) — Seksyen 96–106, Hak Mempertahankan Diri (cetakan semula, seperti pada 1 Oktober 2018) — Pejabat Peguam Negara Malaysia (AGC) — Laws of Malaysia, Portal e-LoM
  2. Self-Defence 101 — hak pertahanan diri, kemunasabahan dan 'empat justifikasi kardinal' — Aaron Mathews Advocates & Solicitors

Change history

Version Date Change By
01.00 1 Aug 2026 Approved and published.
More in Public Safety View all 16 →
Related knowledge