Cobb, J.
The petition showed on its face that the defendant had, prior to the filing of the present suit, brought an action against the plaintiff to recover possession of the laud described in the present petition. There was no allegation that this suit had culminated in a judgment, or had been dismissed, or otherwise disposed of; and it was therefore to be presumed, in the absence of an averment to the contrary, that the same was still pending. After the petition had been amended by striking therefrom the prayers for extraordinary relief, all that remained related to matters which, if constituting a cause of action at all, coidd have been properly made the subject-matter of pleas in the action brought by the defendant against the plaintiff’s testator. He could in that suit have pleaded estpppel and subrogation, and also have set up that the deed relied on by the plaintiff was a forgery. No one doubts that the plaintiff’s testator could by plea have availed himself of these defenses; but the question to be determined is whether he was compelled to adopt that course instead of bringing an independent suit setting up. these equitable claims against the present defendant. In Fannin v. Thomasson, 45 Ga. 533, it was held, by two Justices, that though a defendant in an action at law may set up an equitable defense by his plea, he is not obliged to do so where such a defense constitutes an . independent claim against the plaintiff. While Mr. Chief Justice Warner concurred in the judgment in that case, he did not concur in the ruling just referred to, a.s clearly appears from what is said by him in the case of Grubb v. Kolb, 55 Ga. 630, where it was held, by two Justices, that, in view of the provisions of the *663code, the general rule was that a defendant, when sued on the common-law side of the court, should avail himself of all defenses, both legal and equitable, that were then known to him, or he would be thereafter concluded from taking advantage of the same. In 1882 it was distinctly held that the defendant is in diligence bound to plead to an action at law every defense, legal or equitable, which he may have to such action. Brown v. Boynton, 69 Ga. 754, and cit. See also Waters v. Perkins, 65 Ga. 35. The act of 1884 (Civil Code, § 4838) authorized the defendant in .an action at law to obtain by appropriate pleadings all of the equitable relief, ordinary and extraordinary, that was necessary to the maintenance of his defense, and also permitted the making of new parties on the common-law side of the court. The uniform procedure act of 1887, which abolished all distinction between law and equity so far as procedure was concerned, distinctly provided that the defendant, by answer, could obtain all the equitable relief, ordinary or extraordinary, which might be necessary for the maintenance of his defense. Civil Code, § 4839. The purpose of the uniform procedure act of 1887 was to vest in the superior courts the authority to settle in one suit the controversy between the parties, without reference to the question whether the plaintiff’s cause of action was legal or equitable, or whether the defendant’s defense was one which a court of law would recognize or one which, under the old procedure, would have required the interposition of a court of equity in order to give effect to equitable rights or to enforce equitable remedies, ordinary or extraordinary. When a plaintiff sues a defendant in the superior court, the policy of the law, as indicated by the acts of 1884 and 1887 and kindred legislation, requires the controversy growing out of the cause of action alleged by the plaintiff to be settled in that suit, and that the plaintiff shall not be harassed by other suits growing out of the same controversy, although they are based upon independent claims, legal or equitable, which the defendant might liave against the plaintiff in refereuce to the cause of the controversy. A defendant in a suit i'u the superior court is bound to set up all defenses that he has to the suit, either legal or equitable, and to pray for all the relief needed in aid thereof, ordinary or extraordinary, and he can not at will decline to litigate as a defendant over these matters and bring 'an independent suit against his ad*664versary, who has already brought him into court. The plaintiff iu the present suit sets up three distinct and independent claims against the defendant, — estoppel, subrogation, and forgery. All of these could be pleaded in the suit brought by the defendant against the plaintiff’s testator. The court erred in overruling the demurrer and the motion to dismiss. • This vital error at the outset of the case vitiated all subsequent proceedings iu the case; and the effect of our judgment is to reverse the judgment of the trial court and dismiss the case. ,
Judgment reversed.
All the Justices concur.