The decision in Erie involved a railroad accident. The plaintiff, Tompkins, was walking alongside Erie's railroad tracks in Pennsylvania when a train passed. An open door struck him and knocked him under the train, severing his arm. In most states, Tompkins could sue for negligence of the railroad and recover monetary damages for his loss. In Pennsylvania, however, Tompkins would have been considered a trespasser. He was not to recover for an ordinary negligence claim in the state court of Pennsylvania, because under the law of that state, a claimant had to show "wanton" negligence to recover.
Thus, Tompkins brought his case in federal court to avoid the unfavorable state law. He subsequently won. However, on appeal the Supreme Court held, in an opinion drafted by Justice Brandeis, that such decisions and inconsistent rulings based on a general federal common law were unconstitutional, and that decisions by a state supreme court were "laws" that federal courts were bound to follow under the Rule of Decision Act. Brandeis noted that the Court felt that Swift allowed federal courts to make unconstitutional modifications of the substantive law of a state. He noted that it violated the right to equal protection under the law, although he did not mean it in the sense of the Fourteenth Amendment. The Court overruled Swift on its own initiative, since the parties in Erie did not ask the Court to do so.
Read more about this topic: Erie Doctrine