The main types of legal immunity are sovereign immunity, qualified immunity, prosecutorial immunity, judicial immunity, legislative immunity, witness immunity, diplomatic immunity, and statutory protections for volunteers and Good Samaritans. Each one shields a different set of people from a different kind of legal exposure, and each has its own limits. Immunity is not a blanket get-out-of-court card. It is a specific legal protection built for a specific function, and whether it applies depends heavily on who the defendant is, what they were doing, and where the case is being brought.
Sovereign Immunity
Sovereign immunity is the oldest form on the list. The rule is simple: the government cannot be sued in its own courts unless it agrees to be sued. The Eleventh Amendment reinforces this by barring federal courts from hearing lawsuits brought against a state by citizens of another state or a foreign country.1Cornell Law School. 11th Amendment Without a waiver, a government entity can block claims ranging from property disputes to personal injury cases before they ever reach the merits.
Suing the Federal Government
Congress waived part of federal sovereign immunity through the Federal Tort Claims Act, which allows individuals to sue the United States for injuries caused by the negligent acts of federal employees acting within the scope of their jobs.2Office of the Law Revision Counsel. 28 USC 1346 – United States as Defendant The government is liable the way a private person would be, with two catches. Punitive damages are off the table,3GovInfo. 28 USC 2674 – Liability of United States and a judge decides the case, not a jury.4Office of the Law Revision Counsel. 28 USC 2402 – Jury Trial in Actions Against United States
Before suing, you must file a written claim with the responsible agency within two years of the incident. If the agency denies it, you have six months from that denial to file in federal court.5Office of the Law Revision Counsel. 28 USC 2401 – Time for Commencing Action Against United States Miss either deadline and the claim is dead.
Even with the waiver, whole categories remain off-limits. You cannot sue the federal government over discretionary policy decisions, such as how an agency allocates resources or designs a program. Other excluded categories include mail delivery, tax collection, and most intentional wrongdoing by employees who are not law enforcement officers.6Office of the Law Revision Counsel. 28 USC 2680 – Exceptions
Suing a State or Local Government
Every state has its own rules for when and how it can be sued. Most require a formal notice of claim before any lawsuit, and the deadlines vary wildly. Some give you as little as 30 days. Others allow several years. Roughly 180 days is a common window. These notice deadlines are usually much shorter than the ordinary statute of limitations for private lawsuits, and missing one can end the case before it starts.
Qualified Immunity
Qualified immunity protects individual government officials, most often police officers, from personal liability in civil rights lawsuits. The protection applies unless the official violated a right that was “clearly established” at the time of the conduct. The doctrine is designed to give officials room to make reasonable mistakes without facing personal financial consequences.
To beat qualified immunity, a plaintiff has to show two things: that the official violated a constitutional or statutory right, and that the illegality of the conduct was apparent based on existing court decisions when it happened. That second piece is the hard one. Courts often look for prior cases with closely matching facts, and if no published decision addressed sufficiently similar conduct, the official usually keeps the shield even when the underlying act caused real harm.
Qualified immunity applies only to suits against officials personally, not to suits against the government itself. The test is objective: would a reasonable person in the official’s position have known the conduct was unlawful? If the answer is unclear, the official is protected.
Prosecutorial Immunity
Prosecutors have absolute immunity for actions taken as part of initiating and presenting a criminal case. The Supreme Court set this out in Imbler v. Pachtman, holding that a prosecutor acting within the scope of duties “in initiating and pursuing a criminal prosecution and in presenting the State’s case” cannot be sued for damages, even when the prosecution produced a wrongful conviction.7Justia U.S. Supreme Court. Imbler v Pachtman, 424 US 409 (1976)
Absolute protection covers the core courtroom work: deciding what charges to bring, presenting evidence, questioning witnesses, and making legal arguments. It does not cover everything a prosecutor does. When prosecutors step into an investigative role, such as personally directing police searches or holding press conferences, they get only qualified immunity, the same lesser protection other officials receive. Conduct that falls entirely outside the advocacy role may get no immunity at all.
Judicial Immunity
Judges have broad immunity from civil lawsuits over decisions made in their judicial role. Under Stump v. Sparkman, a judge is immune from damages even for actions taken in error, maliciously, or beyond the judge’s authority. The only exception is when the judge acted in the “clear absence of all jurisdiction.”8Justia U.S. Supreme Court. Stump v Sparkman, 435 US 349 (1978)
The protection turns on whether the act was judicial. Ruling on motions, issuing orders, and conducting hearings qualify. Administrative acts do not. When a judge makes employment decisions, such as hiring, firing, or disciplining court staff, the Forrester v. White line of reasoning treats those as administrative rather than judicial, and the judge receives only qualified immunity. Supervising employees matters to the court system, but it is not itself a judicial function.
Legislative Immunity
Members of Congress are protected by the Speech or Debate Clause in Article I, Section 6 of the Constitution, which says that “for any Speech or Debate in either House, they shall not be questioned in any other Place.”9Cornell Law School. US Constitution Annotated Article I, Section 6, Clause 1 – Speech and Debate Privilege The executive branch and the courts cannot use civil or criminal proceedings to punish legislators for their votes, speeches, committee work, or other legislative acts.
Staff are covered too. In Gravel v. United States, the Supreme Court held that the clause reaches congressional aides when they perform tasks that would be protected if a member performed them directly.10Justia U.S. Supreme Court. Gravel v United States, 408 US 606 (1972) Modern legislators rely so heavily on staff that treating aides differently would let the government undermine legislative independence by targeting the people who do the work.
The clause reaches only legislative activity. Private conduct, campaigning, and other activities unrelated to lawmaking get no protection.
Witness Immunity
Witness immunity is a tool prosecutors use to force testimony from someone who would otherwise plead the Fifth. By granting immunity, the government removes the legal risk that justifies silence, so the witness can be ordered to testify and held in contempt for refusing.11Cornell Law School. Self-Incrimination and the Concept of Immunity It comes in different strengths.
Transactional Immunity
Transactional immunity, sometimes called total immunity, is the broadest. A witness who receives it cannot be prosecuted for any offense related to the testimony, no matter what other evidence the government has.12Department of Justice Archives. Criminal Resource Manual 717 – Transactional Immunity Distinguished This sweeping version is rarely offered at the federal level today.
Use and Derivative Use Immunity
Federal law provides use and derivative use immunity under 18 U.S.C. ยง 6002. The government cannot use the compelled testimony, or any evidence discovered because of it, in a criminal case against the witness.13Office of the Law Revision Counsel. 18 USC 6002 – Immunity Generally Prosecution is still possible if the government can show it built its case from a completely independent source.12Department of Justice Archives. Criminal Resource Manual 717 – Transactional Immunity Distinguished And the witness can still be charged with perjury or false statements for lying during the immunized testimony.
Proffer Agreements
Before formal immunity is granted, prosecutors and defense lawyers often use proffer agreements, sometimes called “queen for a day” agreements, to test what a potential cooperator actually has to offer. The witness provides information in an off-the-record interview, and the government agrees not to use those specific statements directly against the witness in court. Protection is much thinner than formal immunity. The government typically keeps the right to use the information to find other evidence, to impeach the witness if they later contradict their proffer, and to prosecute for perjury or obstruction.
Diplomatic Immunity
Foreign diplomats and their families are largely shielded from the host country’s legal system. The Vienna Convention on Diplomatic Relations of 1961 sets the framework, so that representatives can conduct official business without fear of arrest, detention, or lawsuits from the host government.
Diplomatic agents, meaning ambassadors and senior staff, get the strongest version. They have complete immunity from criminal prosecution, cannot be arrested or detained, and their residences and property cannot be searched. They also have near-total immunity from civil suits and cannot be compelled to testify.14State.gov. Diplomatic and Consular Immunity – Guidance for Law Enforcement and Judicial Authorities
Consular officers, who handle visas, trade, and citizen services, get much narrower protection. They can generally be prosecuted for misdemeanors and arrested for felonies with a judicial warrant. Their personal property is not protected from search. In civil matters, they are immune only for acts taken in the course of official duties.14State.gov. Diplomatic and Consular Immunity – Guidance for Law Enforcement and Judicial Authorities
When a diplomat commits a serious crime, the sending country can waive immunity and allow local prosecution. If no waiver comes, the host country may declare the person persona non grata, which forces the sending country to recall them or end their diplomatic functions.15State.gov. Vienna Convention on Diplomatic Relations and Optional Protocol on Disputes
Volunteer and Good Samaritan Protections
Two statutory protections cover ordinary people who help others.
Volunteer Protection Act
The federal Volunteer Protection Act shields volunteers of nonprofits and government entities from personal liability for harm caused while volunteering, provided several conditions are met. The volunteer must have been acting within the scope of their responsibilities, must have held any required license or certification, and must not have been operating a vehicle at the time.16Office of the Law Revision Counsel. 42 USC 14503 – Limitation on Liability for Volunteers
The protection drops away entirely for serious misconduct, including:
- Willful or criminal misconduct
- Gross negligence or reckless behavior showing conscious disregard for others’ safety
- Crimes of violence or hate crimes resulting in a criminal conviction
- Misconduct found to violate federal or state civil rights laws
- Acting under the influence of alcohol or drugs at the time of the incident
Punitive damages can only be awarded against a volunteer if the plaintiff proves by clear and convincing evidence that the volunteer engaged in willful misconduct or showed conscious disregard for the safety of the injured person.16Office of the Law Revision Counsel. 42 USC 14503 – Limitation on Liability for Volunteers
Good Samaritan Laws
All 50 states and the District of Columbia have Good Samaritan laws that protect people who provide emergency help to someone in danger. The laws vary by state, but they generally shield bystanders, off-duty medical professionals, and other rescuers from civil liability for unintentional harm caused while rendering emergency care in good faith. The threshold for losing protection ranges from ordinary negligence in some states to reckless or willful misconduct in others, so the exact level of coverage depends on where the emergency happens.