opinion: Opinion of the Court by
  Mr. Justice Douglas,,
  announced by
  Mr. Justice Reed.
  This case was brought in the District Court for Mississippi on the grounds of diversity of citizenship. Respondent, a Tennessee corporation, sued petitioner, a resident of Mississippi, for a. broker’s commission alleged to be due for the sale of real estate of petitioner in Mississippi. The District Court found on motion for summary judgment that the contract was void under Mississippi law, since respondent was doing business in Mississippi without qualifying .under a Mississippi statute. It therefore dismissed the complaint with prejudice.
  - The. Court of. Appeals reversed. It reviewed the Mississippi decisions under the Mississippi Statute and concluded that the contract was not void but only unen-, forcible in the Mississippi courts. It held in reliance on David Lupton’s Sons Co. v. Automobile Club, 225 U. S. 489, that the fact that respondent could not sue in the Mississippi courts did not close the doors of the federal court sitting in. that State. Accordingly it reversed the judgment; of the District Court. 168 F. 2d 701. It granted rehearing, 170 F. 2d 74, and reaffirmed its reversal, 170 F. 2d 694.
  The case is here on a petition for writ of certiorari which we granted because of the seeming conflict of that holding with our.recent ruling in Angel v. Bullington, 330 U. S. 183.
  If the Lupton’s Sons case controls, it is clear that the Court of Appeals was right in allowing the action to be maintained in the federal court. In that case, a New York statute provided that no foreign corporation could “maintain any action in this state” without a certificate that it had qualified to do business there. The Court held that a contract on which the corporation could not sue .in the courts of New York by reason of that statute nevertheless could be enforced in the federal court in a diversity suit. The Court said, 225 U. S. p. 500,
  “The State could not prescribe the qualifications of suitors in the courts of the United States, and could not deprive of their privileges those who were entitled under the Constitution and laws of the United States to resort to the Federal courts for the enfprcement of a valid contract.”
  We said in Angel v. Bullington that the case of Lupton’s Sons had become “obsolete” insofar as it was “based on a view, of diversity jurisdiction which came to an end with Erie Railroad v. Tompkins, 304 U. S. 64.” 330 U. S. p. 192. Bullington had sued Angel in a North Carolina court for a deficiency judgment on the sale of realty under a deed of trust. The Supreme Court of North Carolina dismissed the action because of a North Carolina statute which disallowed a deficiency judgment in such a case and which the North Carolina Supreme Court construed to be “a limitation of the jurisdiction of the courts of this State.” 220 N. C. 18, 20, 16 S. E. 2d 411, 412. Thereafter Bullington sued in the federal court of North Carolina by reason of diversity of citizenship. We held that that suit could not be maintained because (1) the prior suit was res judicata; and (2) the policy of Erie R. Co. v. Tompkins precluded maintenance in the federal court in diversity cases of suits to which the ■State had closed- its courts.
  The Court of Appeals concluded that the latter reason was argumentatory, the real basis of the decision being that Bullington was denied recovery on the doctrine of res judicata. But where a decision rests on two or more grounds, none can be relegated to the category of obiter dictum. United States v. Title Ins. Co., 265 U. S. 472, 486; Massachusetts v. United States, 333 U. S. 611, 623.
  Angel v. Bullington in its alternative ground followed the viewof Guaranty Trust Co. v. York, 326 U. S. 99, 108, that for purposes of diversity jurisdiction a federal court is, “in effect, only another court of the State . . . .” In that case we required the federal court in a diversity case to apply the statute of limitations of the State in equity actions and thus to follow local law; as had previously been done in cases involving burden of proof (Cities Service Co. v. Dunlap, 308 U. S. 208; cf. Stoner v. New York Life Ins. Co., 311 U. S. 464); contributory negligence (Palmer v. Hoffman, 318 U. S. 109, 117); conflict of laws (Klaxon Co. v. Stentor Co., 313 U. S. 487; Griffin v. McCoach, 313 U. S. 498); and accrual of the cause of action (West v. American Tel. & T. Co., 311 U. S. 223). The York case was premised on the theory that a right which local law creates but which it does not supply with a remedy is no right at all for purposes of enforcement in a federal court in a diversity case; that where in such cases one is barred from recovery in the state court, he should likewise be barred in the federal court. The contrary result would create discriminations against citizens of the State in favor of those authorized to invoke the diversity jurisdiction of the federal courts. It was that element of discrimination that Erie R. Co. v. Tompkins was designed to eliminate.
  Reversed.
  Mr. Justice Rutledge dissents. See his dissenting opinion in Nos. 442 and 512, Cohen v. Beneficial Industrial Loan Corp., post, p. 557.
  Miss.. Code 1942, § 5319, requires a .foreign corporation doing business in the State to file a written power of attorney designating an agent on whom service of process may be had. It also provides, “Any foreign corporation failing to comply with the above provisions shall hot be permitted to bring or maintain any action or suit in any of the courts of this state.” .