This is an action of ejectment, the complaint being in the usual form. The answer makes a general denial, and then alleges certain facts in the nature of a special defense. Judgment went for the defendants in the lower court, and the case is before us *323for consideration upon an appeal from the judgment, and from the order denying plaintiff’s motion for a new trial.
The following are substantially the findings of the court, and they are supported both by the allegations of defendants’ special defense and by the evidence: That upon the twentieth day of October, 1879, the Southern Pacific Railroad Company was the owner of a certain tract of land situated in Tulare and Fresno counties, and at said time Mary A. Mangan, who was the wife of J. M. Mangan, entered into a written contract with said company, whereby said company contracted to sell to her said real property for an agreed price; and said Mary A. Mangan at that time from her separate property paid a portion of said purchase price, and agreed to pay the balance on or before the twentieth day of October, 1884, with interest at ten per cent per annum; and upon the payment of said purchase price and interest, said company agreed to execute and deliver to her a deed in fee of said premises; that upon the execution of said agreement, the defendants entered into the possession of said property, and ever since said time have been in. the open, notorious, and exclusive possession and occupancy thereof, having valuable improvements thereon, and claiming to own the same; and the plaintiff, prior (o his purchase, never made any inquiry from them, or either of them, as to their rights or claims in and to the premises; that about the eighteenth day of September, 1883, defendant Mary A. Mangan assigned her interest in and to the foregoing contract of sale to one Brownstone, to secure a promissory note given by defendant J. M. Mangan to said Brownstone; and said assignment was made with the understanding that said contract should be reassigned to her when said note and interest were paid; that said note was subsequently surrenderd to J. M. Mangan, and he gave a new note to Brownstone for a larger amount (including the amount of the first note) *324without the consent or knowledge of Mary A. Mangan, and no part of'said note has been paid; that upon the twenty-second day of November, 1883, Brownstone assigned an undivided one-half interest in said contract to B. Schwartz, and upon February 25, 1888, Brownstone and Schwartz assigned said contract to one Erlanger, who had actual knowledge of the claims and rights of defendants in and to said land; that upon the seventh day of March, 1888, Erlanger assigned said contract to plaintiff, who, upon the fourteenth day of March, 1888, made full payment to said railroad company for said land, surrendered said contract, and received a deed therefor.
The court further found that the assignment of the contract of sale to Brownstone was a mortgage of defendants’ interest in the land, and that the possession of defendants was sufficient to put plaintiff on inquiry as to their rights, and having failed to make such inquiry, he is in no better position than if he had done so, and had been fully informed as to the defendants’ claims and equities.
The assignment of the contract by Mary A. Mangan was as follows:— .
“ I, Mary A. Mangan, the within-named purchaser, for and in consideration of the sum of six hundred dollars to me in hand paid, do hereby sell, assign, and transfer all my right, title, interest, and claim in and to the within-described tract or parcel of land, and the within contract No. 759, unto D. Brownstone, his heirs and assigns forever, subject to the stipulations and conditions therein contained, which are to be performed by said D. Brownstone, the assignee. Maby A. Mangan.
“ September, 18, 1883.”
Appellant relies upon two main propositions in this case, either of which, if maintained, he claims would entitle him to recover: 1. That he is the owner and holder of the legal title to the premises, and in an action *325of ejectment, the legal title must control; 2. If the assignment of the contract were to be held to be a mortgage, the debt for which it was given being barred, defendants are entitled to no consideration without offering to redeem.
The first proposition, that “in an action of ejectment the legal title must control,” is not the law of this state. The case of Willis v. Wozencraft, 22 Cal. 615, decides: “ A mere equitable title to land, if it is of such a character as entitles the holder to possession in equity, is a sufficient defense under our system, of practice to an action for the possession, brought even by the holder of the legal title. (Central Pacific R. R. Co. v. Mudd, 59 Cal. 585; Whittier v. Stege, 61 Cal. 238; Hides v. Lovell, 64 Cal. 17; 49 Am. Rep. 679.)
As to the second proposition contended for by appellant, there is a line of authorities which supports such contention. (Hughes v. Davis, 40 Cal. 120; Bruch v. Tucker, 42 Cal. 352; Pico v. Gallardo, 52 Cal. 206.) This proposition of law as laid down in the cases just cited is based upon another principle of law, established for the first time in this state in Hughes v. Davis, 40 Cal. 120, and which has since been discarded by section 2925 of the Civil Code. This principle as announced by the court was, “that an absolute deed which is shown by parol evidence to have been intended as a mortgage conveys the legal title to the property. ” And our attention has not been directed to any authority since this principle ceased to be the law of this state which has held to the doctrine laid down in those cases; but upon the contrary, the later decisions of this court hold that under the general issue the defendant may be allowed to show that the deed by which the plaintiff claims title is a mortgage, and therefore gives him no title.
In the case of Healy v. O’Brien, 66 Cal. 519, the language of the opinion is: “ But when the court found that the deed was given only as security for money loaned, *326it found in effect that it was but a mortgage, and did not pass the legal title to plaintiff. If, therefore, defendants had rested only on their denial of plaintiff’s alleged ownership of the property, judgment must have passed for the defendants. ”
In the case of Smith v. Smith, 80 Cal. 329, the court says: “The plaintiff contends that his motion to proceed first with the trial of the affirmative defense set up by the answer should have bee^i granted, for the reason that it was an equitable defense, and that the whole judgment' should have been reversed upon this ground.” That affirmative defense was, “ that the deed of 1876 was a mortgage, and that the debt secured thereby had been fully paid.” But the allegation that the deed was a mortgage was merely another way of saying that the plaintiff had no title, which was fully covered by the denial of plaintiff’s ownership. And so far as the plaintiff’s right of possession was concerned, it was immaterial whether the debt had been paid or not. And while it may be possible that if the defendant had a title he would have been entitled to some affirmative relief in the nature of the removal of a cloud, yet he did not ask for such relief in terms, and no affirmative relief of any kind was awarded to him by the judgment.” (See Roberts v. Columbet, 63 Cal. 25.)
In the case at bar, the defendants have not relied upon the general issue simply; but by a special defense, not seeking any affirmative relief, have attacked the title of plaintiff, and set out a history of their own title and right of possession; this special defense counsel for the plaintiff did not see fit to attack in the lower court, and indeed it cannot be discerned upon what grounds an attack could have been successfully made.
The plaintiff came into court in this action with full notice of all the rights and equities existing between the-railroad company and the defendants, and between Brownstone and his assignees and the defendants; for' the defendants were in the open, notorious, and exclusive *327possession of this land at all these times, and plaintiff made no inquiry to ascertain the rights or claims of defendants, and he is in no better position, and no more entitled to be regarded as a purchaser in good faith than if he had so inquired and ascertained the real facts of the case. (Pell v. McElroy, 36 Cal. 268; Bank of Mendocino v. Baker, 82 Cal. 114; Scheerer v. Cuddy, 85 Cal. 273.) Neither could the plaintiff be recognized as a bona fide purchaser from his assignor, Erlanger, upon the additional ground that in the sale of equitable interests the principle of bona fide purchasers has no standing. (Taylor v. Weston, 77 Cal. 534.)
The transfer of Mary A. Mangan’s interest in the land (by the assignment of the contract to Brownstone) being a mortgage, Brownstone took no title, and his assignment to Erlanger, who assigned to plaintiff, gave the plaintiff no title, for, as we have already seen, he is deemed to have had notice of the character of the original assignment. The plaintiff does not even occupy the position of Brownstone, for he has an assignment of the security without the transfer of the indebtedness. The debt and security are inseparable; the mortgage alone is not a subject of transfer. (Civ. Code, sec. 2936; Peters v. Jamestown Bridge Co., 5 Cal. 334; 63 Am. Dec. 134; Nagle v. Macy, 9 Cal. 426.) Conceding that under the assignment of Mary A. Mangan to Brownstone, she authorized him to procure from the railroad company the legal title, yet it is a matter of very serious doubt whether under the assignment Brownstone had the right to delegate that power to another; but that is a question unnecessary to decide. If we regard the plaintiff as the assignee of the railroad company, he then purchased the legal title subject to the equitable title of the defendants under the contract, and his legal rights in maintaining this action are identical with tho.se of his assignor; and under the facts as disclosed'by the record in this case, the railroad company could not prevail in this action.
*328The record discloses that the defendants went into possession under the contract; paid a portion of the purchase price; paid the taxes and annual installments of interest for years. The plaintiff before suit made no demand for possession; there is no proof in the case of any special facts tending to show either an active or constructive ouster of the plaintiff; nor is there any evidence tending to show a demand and refusal to pay the purchase price or any installment of interest after it became due, or that the railroad company had not given the defendants additional time in which to make the final payment, or that the defendants had abandoned the purchase or refused to complete it according to the terms of the contract. There is nothing to indicate that the defendants were in default in the performance of the contract, and being rightfully in possession under their equitable title, they could not be disturbed, even by the holder of the legal title.
Let the judgment and order be affirmed.
Harrison, J., McFarland, J., Paterson, J., Sharpstein, J., and De Haven, J., concurred.