image

IPC 77

IPC Section 77 – Act of Judge When Acting Judicially | Explained & Free Legal Consultation
Section 77 · Indian Penal Code · General Exception

IPC Section 77 – Act of Judge When Acting Judicially

Section 77 of the Indian Penal Code is a General Exception — not itself a punishable offence — that provides nothing is an offence which is done by a Judge when acting judicially, in the exercise of a power that is actually given to them by law, or which they in good faith believe to be given to them by law. It forms the statutory basis for judicial immunity, allowing judges to decide cases according to their honest legal judgment without fear of personal criminal liability for the outcome.

Nature: General Exception, not an offence
Punishment: None — defines the scope of judicial immunity
Key Requirement: Acting judicially, within actual or believed legal power
Key Case: Megh Raj v. Zakir Hussain (1875)
BNS 2023 equivalent: Section 15
⚡

Quick Answer: What Does Section 77 Mean?

In simple terms, Section 77 protects judges from criminal liability for decisions made while performing their judicial function — provided they were exercising a power the law actually gives them, or one they genuinely, in good faith, believed the law gave them. The classic illustration: a judge who lawfully sentences someone to death, in accordance with the law and within their jurisdiction, is not personally liable for murder — even though the underlying act (causing someone's death) would otherwise be a serious crime. This protection exists to preserve judicial independence, allowing judges to rule on the law and facts before them without fear of personal prosecution for the decisions they make.

Protects acts done by a Judge specifically while "acting judicially" — in the exercise of judicial functions
Covers both power actually given by law, and power genuinely, in good faith, believed to be given
Courts have held that within genuine jurisdiction, good faith isn't even a separate requirement to examine
Companion to Section 78, which protects acts done pursuant to a court's judgment or order while it remains in force

What is IPC Section 77?

IPC Section 77 sits in Chapter IV of the Indian Penal Code, "General Exceptions," within the cluster addressing judicial and official acts (Sections 76–79). It reflects a foundational principle of any functioning legal system: judges must be free to interpret and apply the law according to their honest understanding, without the chilling fear that an unpopular, mistaken, or even simply wrong decision could expose them personally to criminal prosecution.

The section's own illustration makes this concrete — a judge who sentences a defendant to death in accordance with the law is not personally liable for murder, even though causing another's death would ordinarily be among the most serious offences in the Code. Without this protection, the entire judicial system's ability to function would be fundamentally compromised, since every unfavourable ruling could theoretically trigger personal criminal exposure for the judge who made it.

Important Update: IPC to BNS Transition

With effect from 1 July 2024, the Indian Penal Code has been replaced by the Bharatiya Nyaya Sanhita (BNS), 2023 for offences committed on or after that date. Section 77 IPC now corresponds to Section 15 of the BNS, which retains the same substantive scope and requirements.

Nature of Section 77 & the Burden of Proof

Nature of ProvisionGeneral Exception — provides judicial immunity for acts done while acting judicially; it does not create or punish any offence itself
Who Must Prove ItThe person claiming the exception (the judge), on a preponderance of probabilities, that they were acting judicially and within actual or good-faith believed power
Legal Basis for the BurdenSection 105 of the Indian Evidence Act, 1872 (now Section 109 of the Bharatiya Sakshya Adhiniyam, 2023), which presumes the absence of circumstances bringing a case within a General Exception unless proved otherwise
Scope of "Judge"Broadly defined under Section 19 to include any person officially designated to act as a judge, and any person legally bound to give, or whose judgment is legally deemed final on being confirmed by another authority
Effect if EstablishedThe act is treated as not amounting to an offence, regardless of the outcome it produces for parties before the court

Courts have clarified that, where a judge genuinely acts within their jurisdiction, the question of good faith may not even need separate examination — the protection is treated as extending automatically to acts within jurisdiction, with good faith becoming relevant specifically where a judge has acted beyond, or without, actual jurisdiction.

Key Ingredients / Essential Elements

1

The person must be a "Judge" as defined by the Code

The protection applies specifically to a person qualifying as a "Judge" under Section 19 of the Code, a definition broader than simply formally appointed judicial officers.

2

The act must be done "acting judicially"

The act must have been done in the exercise of a genuinely judicial function, not merely an administrative or unrelated act performed by someone who happens to hold judicial office.

3

Exercise of actual or good-faith believed legal power

The power exercised must either genuinely be given by law, or, alternatively, be one the judge in good faith believed was given to them by law.

How Section 77 Relates to Neighbouring Provisions

  • Section 76 protects an act done by a person bound, or by mistake of fact believing themselves bound, by law to do it.
  • Section 77 (this section) protects a Judge acting judicially, in the exercise of actual or good-faith believed legal power.
  • Section 78 protects acts done pursuant to a court's judgment or order while it remains in force, even where the court lacked jurisdiction, provided good faith in the court's jurisdiction is established.
  • Section 79 protects an act done by a person justified, or by mistake of fact believing themselves justified, by law — a related but distinct protection for non-judicial actors.
  • Section 19 defines "Judge" for purposes of the Code, extending the term beyond formally designated judicial officers.

Important Cases on Section 77

Allahabad High Court

Megh Raj v. Zakir Hussain, (1875) ILR 1 All 280

The Allahabad High Court held that no person acting judicially is liable for an act done, or ordered to be done, in the discharge of their official duty within the limits of their jurisdiction — and in such a case, the question of acting in good faith does not even arise. The Court clarified that good faith becomes a relevant inquiry only where a judge acts without jurisdiction; but where genuine jurisdiction exists, the immunity extends even to acts that constitute an abuse of that jurisdiction.

Principle relied on: Judicial immunity under Section 77 operates on two distinct tracks — within genuine jurisdiction, the protection applies automatically without a separate good-faith inquiry; beyond or without jurisdiction, good faith becomes the decisive question, with the judge needing to establish a genuine, honest belief that they possessed the relevant legal power.

Frequently Asked Questions on Section 77

What exactly does IPC Section 77 protect?+
It protects acts done by a Judge when acting judicially, in the exercise of a power actually given to them by law, or one they in good faith believed was given to them by law.
Is Section 77 itself a punishable offence?+
No, it is a General Exception — it defines the scope of judicial immunity, rather than creating or punishing any offence.
Does a judge need to prove good faith for every decision they make?+
Not necessarily — as held in Megh Raj v. Zakir Hussain, where the judge genuinely acted within their jurisdiction, good faith does not even arise as a separate question; it becomes relevant specifically where jurisdiction is disputed or lacking.
Does Section 77 apply only to formally appointed judges?+
No, "Judge" is defined broadly under Section 19 of the Code, extending beyond formal judicial appointees to any person officially designated to act as a judge, or legally bound to give a judgment that is or becomes final.
Can this immunity be lost if the judge's decision is later overturned on appeal?+
No, the immunity is not tied to the ultimate correctness of the judge's decision — it protects the exercise of genuine judicial power, even where the decision is later found to be legally wrong on appeal.
What is the difference between Section 77 and Section 78 IPC?+
Section 77 protects the judge's own act of exercising judicial power. Section 78 protects a different category — acts done by others pursuant to a court's judgment or order, while that judgment or order remains in force.
Does this protection extend to acts entirely outside a judge's jurisdiction?+
Only where the judge genuinely, in good faith, believed they had the relevant legal power — protection does not extend to acts a judge knowingly performed without any legal basis or jurisdiction whatsoever.
Is Section 77 still valid after the BNS came into force?+
IPC Section 77 continues before 1 July 2024; conduct after that date is governed by Section 15 of the Bharatiya Nyaya Sanhita, 2023, which retains the same framework.
Do I need a lawyer to raise or challenge a defence under Section 77?+
Yes, since questions of jurisdiction, good faith, and the scope of "acting judicially" are often fact-intensive and legally complex. Many lawyers, including our panel, offer a free initial consultation — call +91 94797 98899.
Disclaimer: This page is provided for general legal information and educational purposes only. It does not constitute legal advice. Consult a qualified advocate for guidance on your specific case, especially given the transition from IPC to BNS.
2,500+General Exception & judicial matters handled
20+ CitiesAdvocates available pan-India
15+ YearsCombined criminal law experience
24x7Support for urgent legal queries

Get Clarity on a Judicial Immunity Matter

Whether you're navigating a case involving judicial acts or immunity, speak to an experienced criminal lawyer today.

© 2026 Aapka Legal Advice. This page provides general information about IPC Section 77 and is not a substitute for professional legal advice.
Need urgent legal help?📞 Call +91 94797 98899
WhatsApp
GET IN TOUCH

Get Free Legal Advice from
Aapka Legal Advice Experts

(+91) 94797 98899 FEEL FREE TO CALL US