A locomotive operated by Illinois Central Railroad Company (Illinois Central) injured Kelli Smallwood when it struck the automobile in which she was traveling. The accident occurred at a Mississippi Department of Transportation (MDOT) railroad crossing in Florence, Mississippi. At the time of the accident the crossing did not have automatic gates, but was equipped with automatic, flashing warning lights which had been installed using federal funds.
Smallwood filed suit in Mississippi state court alleging negligence claims against Illinois Central and MDOT. The complaint averred that MDOT negligently failed to install gates at the crossing despite its knowledge that the crossing was unreasonably dangerous and extraordinarily hazardous. It also alleged that MDOT had more than six months before the accident authorized and directed Illinois Central to construct gates at the crossing, and the Federal Highway Administration had approved of this installation and allowed fed: eral funding to be used for it, but MDOT and the railroad had negligently delayed in installing the gates.
Illinois Central removed the case to federal court on the basis of diversity jurisdiction and fraudulent joinder.1 It asserted that Smallwood’s joinder of MDOT as a defendant was fraudulent because she *402could state no claim against MDOT, since the Federal Railroad Safety Act (FRSA)2 preempted her claims against it.3 The district court agreed, denying Smallwood’s motion to remand and later dismissing MDOT from the case.4 As the only remaining defendant in the suit, Illinois Central then moved for summary judgment on the basis that the FRSA also preempted Smallwood’s claim against it. The district court granted the motion and entered judgment in favor of the railroad.
Smallwood has timely appealed, urging error in the denial of her motion to remand and the dismissal of MDOT. We conclude that the trial judge erred in finding that MDOT was fraudulently joined, and vacate the judgment and remand this case to the district court with instruction to remand it to the state court from which it was removed.
I
Smallwood argues that there was no fraudulent joinder and therefore the district court erred in refusing to remand the case. We review de novo the district court’s order denying Smallwood’s motion to remand and its decision that MDOT was fraudulently joined.5 The removing party bears the burden of establishing fraudulent joinder, and can do this either by showing “(1) actual fraud in the pleading of jurisdictional facts, or (2) inability of the plaintiff to establish a cause of action against the non-diverse party in state court.”6 The district court found fraudulent joinder because it determined that Smallwood could not establish her claims against MDOT in state court. Such a finding of fraudulent joinder can stand only if the plaintiff has no possibility of recovery against that defendant.7 “If there is arguably a reasonable basis for *403predicting that the state law might impose liability on the facts involved, then there is no fraudulent joinder. This possibility, however, must be reasonable, not merely theoretical.”8
In determining fraudulent joinder, a trial judge may “pierce the pleadings” and consider summary judgment-type evidence in the record.9 However, the court “must also take into account all unchallenged factual allegations, including those alleged in the complaint, in the light most favorable to the plaintiff’ and resolve any contested issues of fact and legal ambiguities in the plaintiffs favor.10 “The burden of persuasion on those who claim fraudulent joinder is a heavy one.”11
II
Relying on Chesapeake & Ohio Railway Co. v. Cockrell12 and Boyer v. Snap-On Tools Corp.,13 Smallwood argues that there was no fraudulent joinder because its only basis was MDOT’s federal preemption defense, which was also asserted as a defense by Illinois Central, the diverse defendant. In Cockrell, an administrator of an estate, who resided in Kentucky, had filed suit in a state court of Kentucky against a Virginia railway company and an engineer and fireman who both lived in Kentucky.14 The suit sought to recover damages for the death of the administrator’s intestate, who was struck by a train.15 The railway company attempted to remove the case to federal court on the basis that the plaintiff had fraudulently joined the railway employees to defeat federal jurisdiction.16 The state court, declining to surrender its jurisdiction, proceeded to a trial and entered judgment against the company, which the state court of appeals affirmed.17
The Supreme Court granted certiorari to determine “whether it was error thus to proceed to an adjudication of the cause notwithstanding the company’s effort to remove it into the Federal court.”18 It concluded that the trial court had not erred in rejecting the railway company’s fraudulent joinder argument, which consisted of the short and plain statement that “the charges of negligence ... against the defendants were each and all ‘false and untrue and were known by the plaintiff, or could have been known by the exercise of ordinary diligence, to be false and untrue ....’”19 It reached this conclusion on the basis that the plaintiffs negligence allegations against the railway employees applied with equal force to the company, which was only liable if the employees were also liable.20 The Court reasoned that although the plaintiffs petition “may have disclosed an absence of good faith on the part of the plaintiff in bringing the action at all, ... it did not show a fraudulent joinder of the engineer and fire*404man.”21 Since “no negligent act or omission personal to the railway company was charged, and its liability, like that of the two employees, was, in effect, predicated upon the alleged negligence of the latter,” the fraudulent joinder allegations “manifestly went to the merits of the action as an entirety, and not to the joinder; that is to say, it indicated that the plaintiffs case was ill founded as to all the defendants.”22 The Court concluded:
Plainly, this was not such a showing as to engender or compel the conclusion that the two employees were wrongfully brought into a controversy which did not concern them. As they admittedly were in charge of the movement of the train, and their negligence was apparently the principal matter in dispute, the plaintiff had the same right, under the laws of Kentucky, to insist upon their presence as real defendants as upon that of the railway company. We conclude, therefore, that the petition for removal was not such as to require the state court to surrender its jurisdiction.23
Smallwood argues that Cockrell applies to her case because she alleged that Illinois Central and MDOT were jointly and severally liable for her injury, and the railroad’s contention that her claim against MDOT is preempted by the FRSA is in actuality not a claim that MDOT has been fraudulently joined but instead an assertion that her case is “ill founded as to all the defendants.” She asserts that preemption of her claims is a merits determination for a Mississippi state court to make.
Smallwood also relies upon the Third Circuit’s decision in Boyer v. Snap-On Tools Corp.,24 in which the plaintiff, a former dealer of Snap-On Tools, filed suit in Pennsylvania state court against the company and two of its employees, alleging, inter alia, that they had misrepresented the profitability of the dealership, the risk of failure, and the amount of capital needed to begin a dealership.25 The defendants urged that Boyer had signed a release waiving any and all claims arising out of the plaintiffs dealership.26 The parties lacked diversity because the plaintiff and the employee defendants resided in Pennsylvania, although the company was a Delaware corporation with its principal place of business in Wisconsin.27 Still, the defendants removed the case to federal court on the basis of diversity jurisdiction and fraudulent joinder, contending that the plaintiff had no colorable claim against the employee defendants because of the release.28
The district court denied the plaintiffs motion to remand on the basis of the release and granted summary judgment to both Snap-On and the employee defen*405dants on that same ground.29 The Third Circuit reversed, reasoning that in addressing the fraudulent joinder question it need not decide whether the release applied to the claims against the employee defendants because “that issue ... [was] equally applicable to Snap-On”;30 “ultimately, this is what the district court decided when it granted summary judgment” in favor of all of the defendants based on the release.31 The Boyer court explained, “in the guise of deciding whether the join-der was fraudulent,” the district court “stepped from the threshold jurisdictional issue into a decision on the merits.”32
Boyer cited Cockrell and reasoned that, as in Cockrell, all of the defendants had raised the same dispositive defense based on the release, and the plaintiffs arguments that the release was invalid “involve identical legal and factual issues applicable to the individual defendants and Snap-on.”33 That court concluded:
[W]here there are colorable claims or defenses asserted against or by diverse and non-diverse defendants alike, the court may not find that the non-diverse parties were fraudulently joined based on its view of the merits of those claims or defenses. Instead, that is a merits determination which must be made by the state court.34
Several district courts across the country have applied identical reasoning in refusing to find fraudulent joinder where the only basis for the claim is a defense equally applicable to all of the defendants, diverse and nondiverse.35
Illinois Central and MDOT reply that we have allowed fraudulent joinder claims to be premised on the validity of the nondi-verse defendants’ affirmative defenses and that we have also refused to remand a case *406on the basis of the common defense theory. Although we have before looked to the validity of a nondiverse party’s affirmative defenses in determining whether that party was fraudulently joined, we did not confront, much less decide, whether defenses common to diverse and nondiverse defendants could serve as the basis for a claim of fraudulent joinder.36
MDOT and the railroad argue that Dudley v. Community Public Service Co. decided the question.37 Dudley held that the district court erred in denying the plaintiffs’ remand motion, reasoning that a Texas law did not apply to prohibit the plaintiffs’ claims against the nondiverse defendant.38 The plaintiffs, the widow and dependent of a deceased electric company employee who had been electrocuted on the job, had sued the company and the deceased’s superintendent for gross negligence.39 The superintendent and the plaintiffs both lived in Texas, while the company was a citizen of Delaware.40 Nevertheless, the company removed the case to federal court on the basis of diversity jurisdiction, arguing that the plaintiffs had fraudulently joined the superintendent because the Texas Workmen’s Compensation Law acted as a defense to the plaintiffs’ claims against the employee.41 The court rejected this contention, finding that the law allowed an action against the superintendent for exemplary damages.42
The company never claimed that the Compensation Law barred the plaintiffs’ claims against it. Instead, we explained that the company contended that the law blocked any action against “a co-employe[e] for injury or death” so “there could be no right of action against” the superintendent.43 The only indication that the Compensation Law could be applied to defeat the plaintiffs’ claims against both defendants is the court’s statement that if section three of the law, which provided that employees of a company falling within the scope of the law had no right of action against their employer or co-employees for personal injuries, were read in isolation of the other sections, “Dudley’s representatives could sue neither [the superintendent] nor the common employer.”44 However, the court quickly added that section five allowed a plaintiff to recover exemplary damages from an employer for personal injuries.45 Thus, the only question was whether the law also allowed exemplary *407damages against a co-employee. The court found that the law did allow such damages, and that therefore the defendant superintendent was not fraudulently joined.46
The only other case Illinois Central and MDOT rely upon in asserting that we must reject the common defense theory is a District of Colorado case, Frontier Airlines, Inc. v. United Air Lines, Inc,47 The Frontier court found fraudulent joinder on the basis of the defendants’ common conflict preemption defense and applied its preemption analysis to the plaintiffs claims against the diverse defendant.48 However, the opinion does not consider Cockrell or Boyer. Indeed, the plaintiff apparently did not argue that fraudulent joinder could not be based on the common preemption defense.49
Illinois Central and MDOT have cobbled together no reasoned support for their position, which is contrary to the Supreme Court’s century-old command in Cockrell that the fraudulent joinder allegations be directed toward the joinder, not to “the merits of the action as an entirety.” Moreover, it contravenes the purpose of the fraudulent joinder doctrine, which is to prevent a plaintiff from naming a nondi-verse party as a defendant solely for the purposes of depriving the court of jurisdiction.50
Ill
Reference to traditional removal rules and principles persuade that the Boyer court’s holding, based on Cockrell, is necessary to prevent erosion of the well-pleaded complaint rule and serves the federal-state balance. The well-pleaded complaint rule bars removal on the basis of federal question jurisdiction unless that jurisdiction is evident from the face of the complaint.51 A federal defense then does not give a defendant the right to remove:
“[S]ince 1887 it has been settled law that a ease may not be removed to federal court on the basis of a federal defense, including the defense of preemption, even if the defense is anticipated in the plaintiffs complaint, and even if both parties admit that the defense is the only question truly at issue in the case.”52
*408It is true that complete preemption acts as a narrow exception to the well-pleaded complaint rule, but neither Illinois Central nor MDOT disputes that it is conflict preemption, not complete preemption, which is at issue here.53
Because Illinois Central claims only conflict preemption, it is not entitled, under the well-pleaded complaint rule, to a federal forum for its resolution.54 If Illinois Central had removed on the basis of federal question jurisdiction, pointing to a federal defense, the district court could not have “resolve[d] the dispute regarding preemption,” and would have “lack[ed] power to do anything other than remand to the state court where the preemption issue [could] be addressed and resolved.”55 We, like the Third Circuit, recognize that “[s]tate courts are competent to determine whether state law has been preempted by federal law, and absent complete preemption, they must be permitted to perform that function with regard to state law claims brought before them.”56
Regardless of whether it intended to, Illinois Central circumvented this limit on removal jurisdiction by removing on the basis of its conflict preemption defense but clothing it in a claim of diversity jurisdiction and fraudulent joinder. It successfully convinced the district court to decide the preemption question, which if Illinois Central had removed the case on the basis of federal question jurisdiction the court would have had no power to do, in the guise of determining whether MDOT, the non-diverse party, had been fraudulently joined. This use of fraudulent joinder frustrates the overarching principle of the well-pleaded complaint rule, that state courts are equally competent to decide federal defenses.
IV
We conclude that the district court erred in denying Smallwood’s motion to remand and in dismissing MDOT as a party, vacate the judgment in favor of Illinois Central, and remand the case to the district court with instruction to remand it to the state court from which it was removed. It is for Mississippi state courts to decide the merits of MDOT and Illinois Central’s common preemption defense.
VACATED and REMANDED.