Per Curiam.
A long line of this Court’s precedents acknowledges that, generally, a judge is immune from a suit for money damages. See, e. g., Forrester v. White, 484 U. S. 219 (1988); Cleavinger v. Saxner, 474 U. S. 193 (1985); Dennis v. Sparks, 449 U. S. 24 (1980); Supreme Court of Va. v. Consumers Union of United States, Inc., 446 U. S. 719 (1980); Butz v. Economou, 438 U. S. 478 (1978); Stump v. Sparkman, 435 U. S. 349 (1978); Pierson v. Ray, 386 U. S. 547 (1967). Although unfairness and injustice to a litigant may result on occasion, “it is a general principle of the highest importance to the proper administration of justice that a judicial officer, in exercising the authority vested in him, shall be free to act upon his own convictions, without apprehension of personal consequences to himself.” Bradley v. Fisher, 13 Wall. 335, 347 (1872).
In this case, respondent Howard Waco, a Los Angeles County public defender, filed suit in the United States District Court for the Central District of California under Rev. Stat. § 1979, 42 U. S. C. § 1983, against petitioner, Raymond Míreles, a judge of the California Superior Court, and two police officers, for damages arising from an incident in November 1989 at the Superior Court building in Van Nuys, Cal. Waco alleged that after he failed to appear for the initial call of Judge Míreles’ morning calendar, the judge, “angered by the absence of attorneys from his courtroom,” ordered the police officer defendants “to forcibly and with excessive force seize and bring plaintiff into his courtroom.” App. to Pet. for Cert. B-3, ¶ 7(a). The officers allegedly “by means of unreasonable force and violence seize[d] plaintiff and remove[d] him backwards” from another courtroom where he was waiting to appear, cursed him, and called him “vulgar and offensive names,” then “without necessity slammed” him through the doors and swinging gates into Judge Míreles’ courtroom. Id., at B-4, ¶ 7(c). Judge Míreles, it was alleged, “knowingly and deliberately approved and ratified each of the aforedescribed acts” of the police officers. Ibid. Waco demanded general and punitive damages. Id., at B-5 and B-6.
Judge Míreles moved to dismiss the complaint as to him, pursuant to Federal Rules of Civil Procedure 12(b)(1) and (6), for failure to state a claim upon which relief could be granted. The District Court dismissed the claim against the judge and entered final judgment as to him, pursuant to Rule 54(b), on grounds of “complete judicial immunity.” App. to Pet. for Cert. D-2. On Waco’s appeal, the United States Court of Appeals for the Ninth Circuit reversed that judgment. Waco v. Baltad, 934 F. 2d 214 (1991). The court determined that Judge Míreles was not immune from suit because his alleged actions were not taken in his judicial capacity. It opined that Judge Míreles would have been acting in his judicial capacity if he had “merely directed the officers to bring Waco to his courtroom without directing them to use excessive force.” Id., at 216. But “[i]f Judge Míreles requested and authorized the use of excessive force, then he would not be acting in his judicial capacity.” Ibid.
Taking the allegations of the complaint as true, as we do upon a motion to dismiss, we grant the petition for certiorari and summarily reverse.
Like other forms of official immunity, judicial immunity is an immunity from suit, not just from ultimate assessment of damages. Mitchell v. Forsyth, 472 U. S. 511, 526 (1985). Accordingly, judicial immunity is not overcome by allegations of bad faith or malice, the existence of which ordinarily cannot be resolved without engaging in discovery and eventual trial. Pierson v. Ray, 386 U. S., at 554 (“[Ijmmunity applies even when the judge is accused of acting maliciously and corruptly”). See also Harlow v. Fitzgerald, 457 U. S. 800, 815-819 (1982) (allegations of malice are insufficient to overcome qualified immunity).
Rather, our cases make clear that the immunity is overcome in only two sets of circumstances. First, a judge is not immune from liability for nonjudicial actions, i. e., actions not taken in the judge’s judicial capacity. Forrester v. White, 484 U. S., at 227-229; Stump v. Sparkman, 435 U. S., at 360. Second, a judge is not immune for actions, though judicial in nature, taken in the complete absence of all jurisdiction. Id., at 356-357; Bradley v. Fisher, 13 Wall., at 351.
We conclude that the Court of Appeals erred in ruling that Judge Míreles’ alleged actions were not taken in his judicial capacity. This Court in Stump made clear that “whether an act by a judge is a 'judicial' one relate[s] to the nature of the act itself, i. e., whether it is a function normally performed by a judge, and to the expectations of the parties, i. e., whether they dealt with the judge in his judicial capacity.” 435 U. S., at 362. See also Forrester v. White, 484 U. S., at 227-229. A judge’s direction to court officers to bring a person who is in the courthouse before him is a function normally performed by a judge. See generally Cal. Civ. Proc. Code Ann. §§ 128, 177, 187 (West 1982 and Supp. 1991) (setting forth broad powers of state judges in the conduct of proceedings). Waco, who was called into the courtroom for purposes of a pending case, was dealing with Judge Míreles in the judge’s judicial capacity.
Of course, a judge’s direction to police officers to carry out a judicial order with excessive force is not a “function normally performed by a judge.” Stump v. Sparkman, 435 U. S., at 362. But if only the particular act in question were to be scrutinized, then any mistake of a judge in excess of his authority would become a “nonjudicial” act, because an improper or erroneous act cannot be said to be normally performed by a judge. If judicial immunity means anything, it means that a judge “will not be deprived of immunity because the action he took was in error ... or was in excess of his authority.” Id., at 356. See also Forrester v. White, 484 U. S., at 227 (a judicial act “does not become less judicial by virtue of an allegation of malice or corruption of motive”). Accordingly, as the language in Stump indicates, the relevant inquiry is the “nature” and “function” of the act, not the “act itself.” 435 U. S., at 362. In other words, we look to the particular act’s relation to a general function normally performed by a judge, in this case the function of directing police officers to bring counsel in a pending case before the court.
Nor does the fact that Judge Míreles’ order was carried out by police officers somehow transform his action from “judicial” to “executive” in character. As Forrester instructs, it is “the nature of the function performed, not the identity of the actor who performed it, that inform[s] our immunity analysis.” 484 U. S., at 229. A judge’s direction to an executive officer to bring counsel before the court is no more executive in character than a judge’s issuance of a warrant for an executive officer to search a home. See Burns v. Reed, 500 U. S. 478, 492 (1991) (“[T]he issuance of a search warrant is unquestionably a judicial act”).
Because the Court of Appeals concluded that Judge Mí-reles did not act in his judicial capacity, the court did not reach the second part of the immunity inquiry: whether Judge Míreles’ actions were taken in the complete absence of all jurisdiction. We have little trouble concluding that they were not. If Judge Míreles authorized and ratified the police officers’ use of excessive force, he acted in excess of his authority. But such an action — taken in the very aid of the judge’s jurisdiction over a matter before him — cannot be said to have been taken in the absence of jurisdiction.
The petition for certiorari is granted, and the judgment of the Court of Appeals is reversed.
It is so ordered.
The Court, however, has recognized that a judge is not absolutely immune from criminal liability, Ex parte Virginia, 100 U. S. 339, 348-349 (1880), or from a suit for prospective injunctive relief, Pulliam v. Allen, 466 U. S. 522, 536-543 (1984), or from a suit for attorney’s fees authorized by statute, id., at 543-544.
California Civ. Proc. Code Ann. §128 (West Supp. 1991) provides in pertinent part: “Every court shall have the power to do all of the following: ... (5) To control in furtherance of justice, the conduct of its ministerial officers, and of all other persons in any manner connected with a judicial proceeding before it, in every matter pertaining thereto.” See Ligda v. Superior Court of Solano County, 5 Cal. App. 3d 811, 826, 85 Cal. Rptr. 744, 753 (1970) (public defender is “ ‘ministerial officer’ ” and one of “ ‘all other persons in any manner connected with a judicial proceeding’ ” within the meaning of §128, and may be ordered to appear to assist criminal defendant).
What follows is an opinion from the Supreme Court of the United States. Your task is to determine whether the decision of the court whose decision the Supreme Court reviewed was itself liberal or conservative. In the context of issues pertaining to criminal procedure, civil rights, First Amendment, due process, privacy, and attorneys, consider liberal to be pro-person accused or convicted of crime, or denied a jury trial, pro-civil liberties or civil rights claimant, especially those exercising less protected civil rights (e.g., homosexuality), pro-child or juvenile, pro-indigent pro-Indian, pro-affirmative action, pro-neutrality in establishment clause cases, pro-female in abortion, pro-underdog, anti-slavery, incorporation of foreign territories anti-government in the context of due process, except for takings clause cases where a pro-government, anti-owner vote is considered liberal except in criminal forfeiture cases or those where the taking is pro-business violation of due process by exercising jurisdiction over nonresident, pro-attorney or governmental official in non-liability cases, pro-accountability and/or anti-corruption in campaign spending pro-privacy vis-a-vis the 1st Amendment where the privacy invaded is that of mental incompetents, pro-disclosure in Freedom of Information Act issues except for employment and student records. In the context of issues pertaining to unions and economic activity, consider liberal to be pro-union except in union antitrust where liberal = pro-competition, pro-government, anti-business anti-employer, pro-competition, pro-injured person, pro-indigent, pro-small business vis-a-vis large business pro-state/anti-business in state tax cases, pro-debtor, pro-bankrupt, pro-Indian, pro-environmental protection, pro-economic underdog pro-consumer, pro-accountability in governmental corruption, pro-original grantee, purchaser, or occupant in state and territorial land claims anti-union member or employee vis-a-vis union, anti-union in union antitrust, anti-union in union or closed shop, pro-trial in arbitration. In the context of issues pertaining to judicial power, consider liberal to be pro-exercise of judicial power, pro-judicial "activism", pro-judicial review of administrative action. In the context of issues pertaining to federalism, consider liberal to be pro-federal power, pro-executive power in executive/congressional disputes, anti-state. In the context of issues pertaining to federal taxation, consider liberal to be pro-United States and conservative pro-taxpayer. In miscellaneous, consider conservative the incorporation of foreign territories and executive authority vis-a-vis congress or the states or judcial authority vis-a-vis state or federal legislative authority, and consider liberal legislative veto. The lower court's decision direction is unspecifiable if the manner in which the Supreme Court took jurisdiction is original or certification; or if the direction of the Supreme Court's decision is unspecifiable and the main issue pertains to private law or interstate relations