This judicial doctrine, invented by the Supreme Court in the 1960s, protects state and local officials from liability, even when they act unlawfully, so long as their actions do not violate “clearly established law.” In practice, this legal standard is a huge hurdle for civil rights plaintiffs because it generally requires them to identify not just a clear legal rule but a prior case with functionally identical facts.