¶1after making the foregoing statement, delivered the opinion of the court.
¶2
¶3In Brown v. Leigh, 49 N. Y. 78, the original complaint was to compel the determination of conflicting claims to real property, but under a statute providing that any pleading may be once amended by the party of course without prejudice to proceedings already had, the plaintiff served an amended complaint which set forth a cause of action in ejectment. This was stricken out on motion, upon the ground that it embraced a new and different cause of action from that set forth in the original complaint. Prom this order *263an appeal was taken, and Mr. Justice Grover, after referring to the fact that some of the courts of the state had held that the statute only gave the right to amend and perfect what was previously set out in an imperfect manner, and that others had held that a new cause of action or defense might be set up, says: “ I think the construction adopted in the former cases too strict, and subversive of the true meaning of the section in this respect. That gives a party power to amend any pleading once without imposing any restriction upon it. The term ‘pleading’ includes all the pleadings of both parties. The ‘ complaint ’ is the statement of the plaintiff’s cause or causes of action. It is this statement or complaint that may be amended and perfected by the party so as to enable him to present his entire case upon trial. It is not confined to an amendment of such matter as has been defectively stated in the original complaint. The same remarks apply to the answer. This is a statement of the defense and of any counterclaim or claims. It is this statement that may be amended by the party so as to enable him to avail himself of all his defenses upon trial. It follows that new causes of action may be included in the complaint, and those in the original left out, and new defenses or counterclaims embraced in the answer. That this was the intention of the legislature clearly appears from the last clause of section 173, Code Procedure [which is similar to our section 101], by which the power of the court to grant amendments upon the trial by conforming the pleading to the facts proved is restricted to such amendments as do not change substantially the claim or defense. The *264insertion of the restriction shows that the legislature, in its absence, understood that such change might be made under the power conferred. There is no such restriction in section 172, nor upon the general power conferred upon the court to allow amendments conferred by section 173. Were the power to amend upon trial unrestricted, parties might be compelled to litigate matters of which they had no notice, and for which they were unprepared, and injustice thereby done; but there is no such danger where the amendment is made before trial, so that the adverse party may come fully prepared to meet.” It is quite true, this decision was made under a section of the New York statute in substance the same as section 99 of our code, but it was no more liberal as to the character of the amendment which may be made than the first clause of section 101, now under consideration. The only difference is that in the one instance the amendment may be made as a matter of course, while in the other it can only be done by leave of the court, and in furtherance of justice; and therefore the reasoning of Judge Grover in the case referred to is just as applicable to the case in hand, and to the proper construction of the first clause of section 101, as it is to the construction of the section of the New York statute which he was then considering. The section quoted plainly provides for two classes of amendments, one made before trial and the other after the trial has begun, and before the final submission of the case. In the former, no limitation is placed upon the power of the court to allow an amendment except that it must be “in furtherance of justice,” and, if a *265new allegation is added, it must be one “ material to the cause while in the latter the power is restricted to such amendments as do not substantially change the cause of action or defense.
¶4It follows, we think, that it is within the power of the trial court to allow, before trial, an amended complaint to be filed containing a new cause of action or suit material to the subject matter of the controversy then before the court. A plaintiff cannot, of course, abandon his original cause of action or suit, and substitute an entirely new and different one, because in such case the new pleading would not be an amendment, but a substitution for the original. But so long as the amendment is germane to the subject matter of the controversy, we can see no objection to the court, in the exercise of a sound discretion, allowing the pleadings to be amended in furtherance of justice by inserting new and additional allegations material to such controversy, although they may, in effect, constitute a new cause of action or defense. That this is the intention of the statute is, it seems to us, made manifest from the latter clause of the section under consideration, which specially restricts the amendments made on the trial to such as do not substantially change the cause of action or defense. This construction is in harmony with the rule governing the allowance of amendments, which has in view the determination of the actual controversy with as little expense and delay as possible. “While the parties are in court,” says Chief Justice Strahan, “they ought to be permitted to shape their pleadings in such form as they may be advised, so as to present *266the real questions at issue that the same may be determined with as little delay and expense as possible. Nothing is ever gained by turning a party out of court, or compelling him to take a nonsuit, on account of some defect in his pleadings not discovered, perhaps, until during the progress of the case, when an amendment could supply the defect, and the action or suit be brought to an early determination”: Baldock v. Atwood, 21 Or. 73 (26 Pac. 1058). As illustrating tbe power of the court, under a statute similar to ours, to allow the pleadings to be amended, the case of Hatch v. Central Bank, 78 N. Y. 487, is instructive. In that case the original complaint alleged, in substance, that plaintiff purchased of defendant what purported to be four United States treasury notes for $1,000, which were counterfeited. Upon issue joined the plaintiff had judgment for the amount paid for the counterfeit notes, with interest; but, after this judgment had been paid and satisfied, the court granted a motion that it be opened, and the satisfaction thereof can-celled, and that plaintiff be allowed to serve an amended complaint, adding a count setting forth the purchase of four other similar counterfeited notes, which it was claimed was omitted from the original complaint by mistake, on condition that the plaintiff refund and repay the amount of the judgment which had been paid, and upon compliance with certain other terms and conditions, although the effect of such amendment was to avoid the statute of limitations. The order allowing this amendment was affirmed on appeal, the court, through Mr. Justice Dannokth, saying that “it was going a great way to *267grant the relief sought, but the application was not without merit, and was one which, under a long series of authorities, the court had power to grant.” Within this construction of the statute, supported by the authorities cited, the court had power to allow the amendment sought to be made in this case, although it would have added an additional ground for relief to that contained in the original complaint. It was not intended to change the real gist of the controversy between the parties, or the subject matter of the litigation. The original purpose of the suit was to determine the rights of the respective parties and their priorities in and to the real property in question; and the allegation of any fact material to the controversy, either as a ground of relief or as a defense, could, within the discretion of the trial court, in our opinion, be permitted by amendment before trial.
¶5
¶6
¶7Be VERSED,