Step 1: Explain the doctrine of judicial immunity.
Judicial immunity is a common law and statutory protection that shields judges from civil or criminal liability for acts performed in the exercise of their judicial functions, ensuring independence and impartiality of the judiciary.
Step 2: Define the scope.
The immunity applies strictly to judicial acts (hearing cases, passing judgments, issuing orders). It does not extend to personal business transactions, political activities, or election campaigning.
Step 3: State the correct answer.
Judges are granted immunity for actions done in their judicial capacity, protecting the integrity of judicial decision-making.
\[ \boxed{\text{Actions done in judicial capacity}} \]