delivered the opinion of the Court.
The question posed by this case is whether a statute of the State of Texas violates the Equal Protection Clause of the Fourteenth Amendment of the United States Constitution by denying aliens the opportunity to become notaries public. The Court of Appeals for the Fifth Circuit held that the stat*218ute does not offend the Equal Protection Clause. We granted certiorari, 464 U. S. 1007 (1983), and now reverse.
Petitioner, a native of Mexico, is a resident alien who has lived in the United States since 1961. He works as a paralegal for Texas Rural Legal Aid, Inc., helping migrant farm-workers on employment and civil rights matters. In order to administer oaths to these workers and to notarize their statements for use in civil litigation, petitioner applied in 1978 to become a notary public.1 Under Texas law, notaries public authenticate written instruments, administer oaths, and take out-of-court depositions.2 The Texas Secretary of State denied petitioner’s application because he failed to satisfy the statutory requirement that a notary public be a citizen of the United States. Tex. Rev. Civ. Stat. Ann., Art. 5949(2) (Vernon Supp. 1984) (hereafter Article 5949(2)). After an unsuccessful administrative appeal, petitioner brought suit in the Federal District Court, claiming that the citizenship requirement mandated by Article 5942(2) violated the Federal Constitution.3
The District Court ruled in favor of petitioner. Vargas v. Strake, C. A. No. B-79-147 (SD Tex., Oct. 9, 1981) (mem.). It reviewed the State’s citizenship requirement under a *219strict-scrutiny standard and concluded that the requirement violated the Equal Protection Clause. The District Court also suggested that even under a rational-relationship standard, the state statute would fail to pass constitutional muster because its citizenship requirement “is wholly unrelated to the achievement of any valid state interest.” App. to Pet. for Cert. 11a. A divided panel of the Court of Appeals for the Fifth Circuit reversed, concluding that the proper standard for review was the rational-relationship test and that Article 5949(2) satisfied that test because it “bears a rational relationship to the state’s interest in the proper and orderly handling of a countless variety of legal documents of importance to the state.” Vargas v. Stroke, 710 F. 2d 190, 195 (1983).4
II
As a general matter, a state law that discriminates on the basis of alienage can be sustained only if it can withstand strict judicial scrutiny.6 In order to withstand strict scrutiny, the law must advance a compelling state interest by the least restrictive means available.6 Applying this principle, *220we have invalidated an array of state statutes that denied aliens the right to pursue various occupations. In Sugar-man v. Dougall, 413 U. S. 634 (1973), we struck down a state statute barring aliens from employment in permanent positions in the competitive class of the state civil service. In In re Griffiths, 413 U. S. 717 (1973), we nullified a state law excluding aliens from eligibility for membership in the State Bar. And in Examining Board v. Flores de Otero, 426 U. S. 572 (1976), we voided a state law that excluded aliens from the practice of civil engineering.
We have, however, developed a narrow exception to the rule that discrimination based on alienage triggers strict scrutiny. This exception has been labeled the “political function” exception and applies to laws that exclude aliens from positions intimately related to the process of democratic self-government. The contours of the “political function” exception are outlined by our prior decisions. In Foley v. Connelie, 435 U. S. 291 (1978), we held that a State may require police to be citizens because, in performing a fundamental obligation of government, police “are clothed with authority to exercise an almost infinite variety of discretionary powers” often involving the most sensitive areas of daily life. Id., at 297. In Ambach v. Norwick, 441 U. S. 68 (1979), we held that a State may bar aliens who have not declared their intent to become citizens from teaching in the public schools because teachers, like police, possess a high degree of responsibility and discretion in the fulfillment of a basic governmental obligation. They have direct, day-to-day contact with students, exercise unsupervised discretion over them, act as role models, and influence their students about the government and the political process. Id., at 78-79. Finally, in Cabell v. Chavez-Salido, 454 U. S. 432 (1982), we held that a State may bar aliens from positions as probation officers because they, like police and teachers, routinely exercise discretionary power, involving a basic governmental function, that places them in a position of direct authority over other individuals.
*221The rationale behind the political-function exception is that within broad boundaries a State may establish its own form of government and limit the right to govern to those who are full-fledged members of the political community. Some public positions are so closely bound up with the formulation and implementation of self-government that the State is permitted to exclude from those positions persons outside the political community, hence persons who have not become part of the process of democratic self-determination.
“The exclusion of aliens from basic governmental processes is not a deficiency in the democratic system but a necessary consequence of the community’s process of political self-definition. Self-government, whether direct or through representatives, begins by defining the scope of the community of the governed and thus of the governors as well: Aliens are by definition those outside of this community.” Id., at 439-440.
We have therefore lowered our standard of review when evaluating the validity of exclusions that entrust only to citizens important elective and nonelective positions whose operations “go to the heart of representative government.” Sugarman v. Dougall, supra, at 647. “While not retreating from the position that restrictions on lawfully resident aliens that primarily affect economic interests are subject to heightened judicial scrutiny... we have concluded that strict scrutiny is out of place’when the restriction primarily serves a political function. . . .” Cabell v. Chavez-Salido, supra, at 439 (citation omitted).
To determine whether a restriction based on alienage fits within the narrow political-function exception, we devised in Cabell a two-part test.
“First, the specificity of the classification will be examined: a classification that is substantially overinclusive or underinclusive tends to undercut the governmental claim that the classification serves legitimate political ends. . . . Second, even if the classification is sufficiently *222tailored, it may be applied in the particular case only to ‘persons holding state elective or important nonelective executive, legislative, and judicial positions,’ those officers who ‘participate directly in the formulation, execution, or review of broad public policy’ and hence ‘perform functions that go to the heart of representative government.’” 454 U. S., at 440 (quoting Sugarman v. Dougall, supra, at 647).7
III
We now turn to Article 5949(2) to determine whether it satisfies the Cabell test. The statute provides that “[t]o be eligible for appointment as a Notary Public, a person shall be a resident citizen of the United States and of this state ...” Unlike the statute invalidated in Sugarman, Article 5949(2) does not indiscriminately sweep within its ambit a wide range of offices and occupations but specifies only one particular post with respect to which the State asserts a right to exclude aliens. Clearly, then, the statute is not overinclusive; it applies narrowly to only one category of persons: those wishing to obtain appointments as notaries. Less clear is whether Article 5949(2) is fatally underinclusive. Texas does not require court reporters to be United States citizens even though they perform some of the same services as notaries.8 Nor does Texas require that its Secretary of State be a citizen,9 even though he holds the highest appointive posi*223tion in the State and performs many important functions, including supervision of the licensing of all notaries public.10 We need not decide this issue, however, because of our decision with respect to the second prong of the Cabell test.
In support of the proposition that notaries public fall within that category of officials who perform functions that “go to the heart of representative government,” the State emphasizes that notaries are designated as public officers by the Texas Constitution.11 Texas maintains that this designation indicates that the State views notaries as important officials occupying posts central to the State’s definition of itself as a political community. This Court, however, has never deemed the source of a position — whether it derives from a State’s statute or its Constitution — as the dispositive factor in determining whether a State may entrust the position only to citizens. Rather, this Court has always looked to the actual function of the position as the dispositive factor.12 The *224focus of our inquiry has been whether a position was such that the officeholder would necessarily exercise broad discretionary power over the formulation or execution of public policies importantly affecting the citizen population — power of the sort that a self-governing community could properly entrust only to full-fledged members of that community. As the Court noted in Cabell, in determining whether the function of a particular position brings the position within the narrow ambit of the exception, “the Court will look to the importance of the function as a factor giving substance to the concept of democratic self-government.” 454 U. S., at 441, n. 7.
The State maintains that even if the actual function of a post is the touchstone of a proper analysis, Texas notaries public should still be classified among those positions from which aliens can properly be excluded because the duties of Texas notaries entail the performance of functions sufficiently consequential to be deemed “political.”13 The Court of Appeals ably articulated this argument:
“With the power to acknowledge instruments such as wills and deeds and leases and mortgages; to take out-of-court depositions; to administer oaths; and the discretion to refuse to perform any of the foregoing acts, notaries public in Texas are involved in countless matters of importance to the day-to-day functioning of state government. The Texas political community depends upon the notary public to insure that those persons executing documents are accurately identified, to refuse to certify any identification that is false or uncertain, and to insist that *225oaths are properly and accurately administered. Land titles and property succession depend upon the care and integrity of the notary public, as well as the familiarity of the notary with the community, to verify the authenticity of the execution of the documents.” 710 F. 2d, at 194.
We recognize the critical need for a notary’s duties to be carried out correctly and with integrity. But a notary’s duties, important as they are, hardly implicate responsibilities that go to the heart of representative government. Rather, these duties are essentially clerical and ministerial. In contrast to state troopers, Foley v. Connelie, 435 U. S. 291 (1978), notaries do not routinely exercise the State’s monopoly of legitimate coercive force.14 Nor do notaries routinely exercise the wide discretion typically enjoyed by public school teachers when they present materials that educate youth respecting the information and values necessary for the maintenance of a democratic political system. See Ambach v. Norwich, 441 U. S., at 77. To be sure, considerable damage could result from the negligent or dishonest performance of a notary’s duties. But the same could be said for the duties *226performed by cashiers, building inspectors, the janitors who clean up the offices of public officials, and numerous other categories of personnel upon whom we depend for careful, honest service. What distinguishes such personnel from those to whom the political-function exception is properly applied is that the latter are invested either with policymaking responsibility or broad discretion in the execution of public policy that requires the routine exercise of authority over individuals. Neither of these characteristics pertains to the functions performed by Texas notaries.
The inappropriateness of applying the political-function exception to Texas notaries is further underlined by our decision in In re Griffiths, 413 U. S. 634 (1973), in which we subjected to strict scrutiny a Connecticut statute that prohibited noncitizens from becoming members of the State Bar. Along with the usual powers and privileges accorded to members of the bar, Connecticut gave to members of its Bar additional authority that encompasses the very duties performed by Texas notaries — authority to “ 'sign writs and subpoenas, take recognizances, administer oaths and take depositions and acknowledgements of deeds.’” Id,., at 723 (quoting Connecticut statute).15 In striking down Connecticut’s citizenship requirement, we concluded that “[i]t in no way denigrates a lawyer’s high responsibilities to observe that [these duties] hardly involve matters of state policy or acts of such unique responsibility as to entrust them only to citizens.” Id., at 724. If it is improper to apply the political-function exception to a citizenship requirement governing eligibility for membership in a state bar, it would be anomalous to apply the exception to the citizenship requirement that governs eligibility to become a Texas notary. We conclude, then, that *227the “political function” exception is inapplicable to Article 5949(2) and that the statute is therefore subject to strict judicial scrutiny.
IV
To satisfy strict scrutiny, the State must show that Article 5949(2) furthers a compelling state interest by the least restrictive means practically available. Respondents maintain that Article 5949(2) serves its “legitimate concern that notaries be reasonably familiar with state law and institutions” and “that notaries may be called upon years later to testify to acts they have performed.” Brief for Respondents 24-25. However, both of these asserted justifications utterly fail to meet the stringent requirements of strict scrutiny. There is nothing in the record that indicates that resident aliens, as a class,- are so incapable of familiarizing themselves with Texas law as to justify the State’s absolute and classwide exclusion. The possibility that some resident aliens are unsuitable for the position cannot justify a wholesale ban against all resident aliens. Furthermore, if the State’s concern with ensuring a notary’s familiarity with state law were truly “compelling,” one would expect the State to give some sort of test actually measuring a person’s familiarity with the law. The State, however, administers no such test. To become a notary public in Texas, one is merely required to fill out an application that lists one’s name and address and that answers four questions pertaining to one’s age, citizenship, residency, and criminal record16 — nothing that reflects the State’s asserted interest in ensuring that notaries are familiar with Texas law. Similarly inadequate is the State’s purported interest in ensuring the later availability of notaries’ testimony. This justification fails because the State fails to advance a factual showing that the unavailability of notaries’ testimony presents a real, as opposed to a merely specula*228tive, problem to the State. Without a factual underpinning, the State’s asserted interest lacks the weight we have required of interests properly denominated as compelling.17
V
We conclude that Article 5949(2) violates the Fourteenth Amendment of the United States Constitution. Accordingly the judgment of the Court of Appeals is reversed, and the case is remanded for further proceedings consistent with this opinion.
It is so ordered.