¶1 Code, § 8003, new to the Code of 1923, undertakes to extend the remedy by action of unlawful detainer to the purchaser of lands sold under the power of sale in a mortgage or deed of trust as against the mortgagor or one holding under him.
¶2 The plaintiff, a mortgagee, purchasing at his own foreclosure sale, sued the mortgagor in unlawful detainer, relying upon this statute.
¶3 By our Constitution, § 168, a justice of the peace is denied jurisdiction in casas of *315 “ejectment.” Any possessory action for the recovery of lands wherein the right to possession turns upon title to the premises is thus withdrawn from the jurisdiction of these local courts whose incumbents are not usually learned in the law, nor required so to he.
¶4 An “unlawful detainer” is defined by section 8001, found in the same chapter wherein section 8003 appears, as “one who has lawfully entered into possession of lands as tenant, fails or refuses on ten days’ demand in writing after the termination of his possessory interest, to deliver the possession thereof to any one lawfully entitled thereto, his agent or attorney.”
¶5 To more explicitly exclude such actions from the effect of section 168 of the Constitution, it is declared the “merits of the title cannot be inquired into” in any suit under this chapter. Code § 8012.
¶6 By a long line of decisions this court has consistently held that unlawful detainer lies only as between landlord and tenant or those succeeding to their possessory relation with consequent rights and duties. In such case the right of plaintiff to possession does not depend on title but on the nature of defendant’s possession, a holding under and for plaintiff, the possession of one the possession of the other. Having derived possession from him, or being in possession, having become a tenant by contract, thus changing the possession from one in his own right to one in the right of the landlord, he is estopped to raise any question of title until he has put his landlord in status quo in the matter of possession after the termination of the possessory interest so held. Dwine v. Brown, 35 Ala. 596; Norwood v. Kirby’s Adm’r, 70 Ala. 397; Houston v. Harris & McCurdy, 71 Ala. 570; Pugh v. Davis, 103 Ala. 316, 18 So. 8, 49 Am. St. Rep. 30; Nicrosi v. Phillipi, 91 Ala. 299, 8 So. 561; Giddens v. Bolling, 92 Ala. 586, 9 So. 274; Cooper v. Gambill, 146 Ala. 184, 40 So. 827; Hill v. Harris, 179 Ala. 614, 60 So. 917.
¶7 The relation of mortgagee and mortgagor is not the same as that of landlord and tenant as affecting an estoppel against the mortgagor when sued by the mortgagee in this form of action. A distinction must be kept in mind between estoppel to deny title and estoppels arising upon proof of title and the relations thus shown.
¶8 Since Duval v. McLoskey, 1 Ala. 708, the appropriate action by the mortgagee to recover possession from the mortgagor has been declared to be ejectment, or, as then in vogue, the action of trespass to try title.
¶9 In such action the plea of not guilty may be interposed, as in other such actions, and so put in issue all questions going to the title, of plaintiff or defendant. Indeed, our statute extends the issues in suits between mortgagee and mortgagor to inquiries going to the mortgage indebtedness. Code, § 7465.
¶10 As well known, a mortgage passing the legal title, in the absence of reservation of right of possession in the mortgagor, express or implied, vests in the mortgagee a right of possession before or after default. He may elect to assert his right to possession or may leave the mortgagor in possession. If he takes possession before foreclosure he becomes accountable to the mortgagor for rents. If not, the mortgagor remains in possession in his own right, having the use thereof and the perception of rents as his own.
¶11 The mortgagee’s right to possession is because of his legal title, the title draws to it the right of possession. The mortgagor has not taken his possession under the mortgage, but the mortgagee derives his right of possession from the mortgagor through a conveyance of the legal title.
¶12 It seems to follow inevitably that the first and essential proof in an action for possession is evidence of the legal title on which the right to possession depends.
¶13 At once the muniment of title, the sufficiency of its terms as well as of its execution to pass a legal title, whether it is infected with fraud, whether such title still persists, or has ceased to be by payment of the mortgage debt — all this and more may become involved. In brief, the issue of title in the mortgagee becomes a primary issue. Code, §§ 7456, 7465; Lomb v. Pioneer Savings & Loan Co., 106 Ala. 591, 17 So. 670; Watson v. Herring, 115 Ala. 271, 22 So. 28.
¶14 So well has it been understood that a mortgagee, or one claiming under him, cannot sue the mortgagor in unlawful detainer, although a constructive tenancy at will or at sufferance has been recognized, that prior to the present statute, section 8003, we find no case where such right of action has been asserted in our courts. But in Nicrosi v. Phillipi, 91 Ala. 299, 8 So. 561, incidentally cataloguing the cases wherein such action does lie, Is mentioned that of a mortgagee, where the mortgagor, after default, remains in possession under contract to pay rent.
¶15 Strauss & Steinhardt v. Harrison, 79 Ala. 324, cited in Nicrosi v. Phillipi, supra, is to like effect, and further declares that even such attornment to the mortgagee cannot work an estoppel which will defeat the mortgagor’s homestead right in the mortgaged lands. He may set up the invalidity of such mortgage notwithstanding an agreement to hold as tenant of the mortgagee.
¶16 ' This court has heretofore had occasion to consider acts undertaking to extend unlawful detainer to eases where the right of possession rests upon title.
¶17*316 Ex parte Webb, 58 Ala. 109, dealt with an act purporting to authorize an action of unlawful detainer by the purchaser at a tax sale for city taxes. In an opinion by Chief Justice Brickell, it was said:
¶18 “The proceeding the statute authorizes, has, necessarily, more of the elements, and bears a greater analogy to an action of ejectment, or the statutory real action, than to an action of unlawful- detainer proper. A legislative declaration that the party withholding the' possession is guilty of an unlawful detainer, and that suit for the recovery of possession, and damages for the detention, may be commenced before a justice of the peace, cannot be so construed as in effect to dis-seize a man of his freehold, and convert his estate into a mere right of action.”
¶19 On a later appeal, Webb v. Carlisle, Jones & Co., 65 Ala. 313, 315, the act was declared unconstitutional because involving trial of title to land. The opinion, by Mr. Justice Stone, declared:
¶20 “It is not within the power of the legislature to confer on justices of the peace jurisdiction in actions of ejectment, under the title of unlawful detainer.”
¶21 In Warren v. Jones. 219 Ala. 213, 121 So. 519, we considered Code, § 10157, new also to the present Code, found in the chapter on redemption, declaring that rights of 'possession acquired under that chapter may be enforced by action of unlawful detainer.
¶22 A purchaser at execution sale sued under that section. Going no further than the exigencies of the case demanded, we held on the.authority of our cases, supra, the action would not lie; in effect, that such construction of the statute renders it unconstitutional.
¶23 That the mortgagee has undertaken to foreclose and acquire the equity of redemption does not change the situation, but, if anything, still further involves the issue of title by act of the mortgagee in which the mortgagor was inactive. The statute does not purport to extend unlawful detainer to cases before foreclosure, but to the purchaser, one acquiring the equity of redemption. The case is strictly analogous to Warren v. Jones, supra.
¶24 We are impelled to hold section 8003 an infringement of section 168 of the Constitution.
¶25 The writer further thinks any other view would be a denial of due process of law, but a decision of this question is deemed unnecessary. Calhoun v. Fletcher, 63 Ala. 574.
¶26 Rehearing granted; judgment of reversal set aside, and cause affirmed.
¶27 (dissenting).
¶28 It is a well-settled principle of constitutional law, in Alabama, that statutes enacted by the Legislature are presumed to be constitutional, and will not.be declared unconstitutional unless they so appear beyond all reasonable doubt. State ex rel. Vandiver v. Burke, Judge, 175 Ala. 561, 57 So. 870.
¶29 This principle applies to statutes adopted as a part of the Code in pursuance of section 85 of the Constitution of 1901.
¶30 Section S003, new to the Code of 1923 and written therein by the Code Commission, was adopted along with the other statutes constituting Chapter 296 of the Code, among others section 8012, which provides: “The estate or merits of the title cannot be inquired into on the trial of any complaint exhibited under this chapter; but all legal and equitable defenses may be had against a recovery for damages or for the unlawful detention of the land.”
¶31 These statutes are in pari materia constituting a system of law relating to the same subject, and must be so construed, if possible, as that they will not impinge each other or the provisions of section 168 of the Constitution which deny power to the Legislature to confer jurisdiction on justices of the peace to entertain “ejectment” for the recovery of the possession of lands. Doss v. State, 220 Ala. 34, 123 So. 231, 68 A. L. R. 712; City of Birmingham v. Southern Express Co., 164 Ala. 529, 51 So. 159.
¶32 This principle, in effect, was applied in Warren v. Jones, 219 Ala. 213, 121 So. 519.
¶33 Applying this rule of construction, section 8003 of the Code would read: “The action of unlawful detainer provided for in this chapter shall lie in favor'of the purchaser of lands sold under the power of sale in any mortgage or deed of trust against the mortgagor or grantor in such mortgage or deed of trust, or anyone claiming under them, upon the failure or refusal of such mortgagor or grantor, or anyone claiming under them, to deliver possession of such lands to the purchaser after ten days’ demand in writing for such possession made by the purchaser,” on showing such relation between the parties as that the plaintiff is not compelled to show title, but is justified in relying on the doctrine of estoppel foreclosing as between the parties an inquiry into the title.
¶34 The clear purpose of the statute being to extend the remedy so as to apply to the relation of landlord and tenant, whether the relation was conventional arising from contract of tenancy between the parties,' covered by section 8001 of the Code, or by the operation *317 of law on an existing contract relation, making applicable the doctrine of estoppel foreclosing an inquiry into title. Patterson v. Folmar, 125 Ala. 130, 28 So. 450; Nicrosi v. Phillipi, 91 Ala. 299, 8 So. 561.
¶35 The act of the Mississippi territory of 1805, carried into Aikin’s Digest, pp. 202-204, some of the provisions of which have been brought into the present Code as section 8002, extended this remedy so as to apply to “tenant or tenants, for term of life or lives, year or years, or other person or persons, who are or shall be in possession of any lands, tenements, or hereditaments, by, from, or under, or by collusion with such tenant or tenants, shall willfully and without force, hold over any lands, tenements, or hereditaments, after demand and notice in writing given for the delivery of the possession thereof, by his, her, or their landlord or landlords, lessor or lessors, or the person or persons to whom the remainder or reversion of such lands, tenements, or hereditaments shall belong, his, her, or their agent or attorney thereunto lawfully authorized, then such person or persons so holding over, shall be guilty of an unlawful detainer.” (Italics supplied.) Aiken’s Digest, p. 203, § 5. And in Stinson v. Gosset, 4 Ala. 170, it was held that the plaintiff, to recover, need not show that the tenancy was created by him, but could recover if he was entitled to the possession as a remainderman or reversioner, and this was so notwithstanding the statute then, as now, provided that “the estate or merits of the title shall in no wise be inquired into on a complaint which shall be exhibited by virtue of this act.” Aikin’s Digest, 2nd Edition p. 205, § 20.
¶36 The Code of 1852, § 2852, provided that: “An unlawful detainer is, where one who has lawfully entered into possession of lands or tenements, after the termination of his possessory interest, refuses, on demand in writing, to deliver the possession thereof to any one lawfully entitled thereto, his agent or attorney.” This section was carried forward in the several Codes, without change, until amended by the Act of December 7,1900 (Acts 1900-01, p. 173). The amended section in its present form first appeared in the Code of 1907 as section 4263. The effect of this amendment was to limit the action of unlawful detainer to the conventional relation of landlord and tenant arising from contract of tenancy between the parties.
¶37 All that the plaintiff in such action is required to show under said section, now section 8001 of the present Code, is “ ‘actual possession in himself prior in point of time to the inception of the wrongful possession of the defendant, prior to the beginning of the unlawful detainer by the defendant,’ and in this sense the actual possession of the plaintiff’s tenant" is plaintiff’s possession. (Italics supplied.) Walker v. Adler, 216 Ala. 76, 112 So. 458, 459; Nicrosi v. Phillipi, 91 Ala. 299, 8 So. 561; Hill v. Harris, 179 Ala. 614, 60 So. 917.
¶38 By the foreclosure of the mortgage under the power of sale, the relation of mortgagor and mortgagee is abrogated and the mortgagor then becomes a tenant, holding at the will or by sufferance of the mortgagee-purchaser, depending upon whether he continues to hold by consent of the purchaser or because of the laches of the purchaser. American Freehold Land Mortgage Co. of London v. Turner, 95 Ala. 272, 11 So. 211; Thompson & Co. v. Union Warehouse Co., 110 Ala. 499, 18 So. 105; Hughes & Tidwell Supply Co. v. Carr et al., 203 Ala. 469, 83 So. 472; Welsh v. Phillips, 54 Ala. 309, 25 Am. Rep. 679; Sadler v. Jefferson, 143 Ala. 669, 39 So. 380; Comer v. Sheehan, 74 Ala. 452; Farris & McCurdy v. Houston, 74 Ala. 162; Lamar v. Johnson, 16 Ala. App. 648, 81 So. 140; 41 C. J. p. 603, § 564, and cases cited under notes 93 and 94.
¶39 In Patterson v. Folmar, 125 Ala. 130, 28 So. 450, the defendant entered not as tenant but as purchaser, but by his default, under the terms of the contract, he became a tenant and was held liable to the action of unlawful detainer after demand and refusal to surrender possession.
¶40 After default and foreclosure, though the possession of the former mortgagor as such tenant may not be wrongful in its inception, it can be converted into a wrongful possession by notice to him to quit possession and his refusal to do so. A tenancy at sufferance “is in strictness not an estate, but a mere possession only. It arises when a person, after his right to the occupation, under a lawful title, is at an end, continues (having no title at all) in possession of the land without the agreement or disagreement of the person in whom the right of possession resides.” Black’s Law Dictionary, “Sufferance, tenancy at” ; 2 Blackstone’s Comm. 150. In a recent case this court has held that such holding over by the ■ mortgagor is wrongful. Buchmann v. Callahan, ante. p. 240, 131 So. 799.
¶41 The provision of the Constitution supposed to have been violated by the Legislature in adopting section 8003 into the Code is that found in section 168, “Justices of the peace, and the inferior courts in this section provided for, shall have jurisdiction in all civil cases where the amount in controversy does not exceed one hundred dollars, except in cases of libel, slander, assault and battery, and ejectment." (Italics supplied.)
¶42 It is too clear to permit of argument that the statute does not undertake to confer jurisdiction on justices of the peace to try ejectment. As before stated, section 8012 provides that in an action of unlawful de *318 tamer the “merits of the title cannot be inquired into.”
¶43 It is equally as clear that the evidence offered was not offered for the purpose of inquiring into the title, but for the limited purpose of showing the relation between the parties, that the defendant was a tenant at sufferance, and that his possessory right had terminated, and as a basis for the estoppel that prevents defendant, as well as the plaintiff, from inquiring into the merits of the title in the action of unlawful detainer. There is nothing in the Constitution that inhibits the Legislature from authorizing proof before a justice of the peace, in such action, that the defendant’s right to possession has terminated. This the plaintiff must do in the action of unlawful detainer if he would succeed. Patterson v. Folmar, supra, Farley v. Bay Shell Road Co., 125 Ala. 184, 27 So. 770; Dent v. Stovall et al., 200 Ala. 193, 75 So. 941; Bailey v. Blacksher Co., 142 Ala. 254, 37 So. 827; Barefoot v. Wall, 108 Ala. 327, 18 So. 823.
¶44 A written lease might be evidence of title, in a proper case, still it would be admissible in an action of unlawful detainer to show the relation of landlord and tenant. Patterson v. Folmar, 125 Ala. 130, 28 So. 450.
¶45 The doctrine of estoppel does not operate merely on title, but it operates to foreclose inquiry as to the relation under which the tenant holds as well. Beck v. Glenn, 69 Ala. 121; Howard v. Jones, 123 Ala. 488, 26 So. 129.
¶46 If the mortgagor in possession after foreclosure is a tenant at will or by sufferance, he is the tenant of the mortgagee-purchaser, and so long as he remains in possession as such tenant he cannot dispute the title of the landlord as a defense to unlawful detainer. If he would do this, he must proceed under sections 8024-8026, and remove the case for trial to the circuit court.
¶47 This interpretation of the statutes affords to the landlord a speedy remedy to oust one who is without right, and at the same time protects the defendant and gives him a remedy by which he may protect his possession and test the plaintiff’s title in a court of competent jurisdiction. If this is not the very essence of due process of law, I have misconceived the force and meaning of these terms.
¶48 It certainly requires a strained application of the Constitution to say that the Legislature may authorize a recovery in unlawful detainer against a tenant by contract who has some color of right, and deny to it the power to authorize the action against a tenant at sufferance who has possession merely without right or color of right. This to my mind 'is a serious and an unwarranted restriction on the power of the legislature.