Actions performed by public officials while deployed to maintain law and order, such as managing public elections or controlling violent crowds, fall within the scope of official duty. When public servants act in the discharge or purported discharge of their duty, statutory protections under Section 197 are designed to shield them from vexatious prosecution. However, asserting that an act was performed under official duty does not automatically trigger immunity unless the statutory prerequisites of Section 197 are fully satisfied. The requirement of prior sanction serves as a procedural safeguard rather than a determination on the substantive innocence or guilt of the accused officer. Quashing a prosecution due to lack of sanction leaves open the possibility of re-initiating proceedings after obtaining proper sanction from the competent authority. Therefore, the existence of an official duty nexus is a necessary condition, but not by itself a sufficient condition, for procedural immunity. (Samarendra Nath Kundu & Anr. v. Sadhna Das & Anr. | 2026 INSC 304)