This action is one in unlawful detainer. The property in controversy was under a ninety-nine year lease. The lessees, the defendants and respondents in this action, were in default in the payment of some $30,000 rent besides taxes which they had agreed to pay. The leased premises were a city block in Hollywood on which were located some fifteen dwellings or bungalows occupied by ten or twelve subtenants. The defendants were in possession of the property only through their subtenants. Their agent collected the rents and paid, them to his principals, the defendants. While the defendants were in default in the payment of said rent and taxes, the plaintiff, the owner of said property, served written notice on the defendants to pay the rent and taxes due and unpaid, or quit and surrender the property to the plaintiff within three days after the service of said notice. No such notice, nor any notice whatever, was ever served by plaintiff on any of the subtenants. Within three days after the service of said notice, the defendants served written notice upon the plaintiff and her attorney of their surrender of the premises to the plaintiff as demanded by the notice served upon the defendants. They also notified their agent not to collect any further rent from said subtenants, and their said agent also notified said subtenants and the plaintiff that he was no longer the agent of the defendants and had no authority to act as the -agent of the defendants or either of them in respect to said property.
*223 Thereafter the plaintiff instituted this action in unlawful detainer against the defendants to recover possession of said premises and the rent and taxes due under the terms of said lease. There is no dispute as to the facts related above. The defendants, as an affirmative defense to said action, alleged their surrender of the possession of said premises to the plaintiff within three days after the service upon them of plaintiff’s demand that they pay said rent and taxes or surrender and quit said premises. The court found in accordance with this affirmative defense of the defendants, and rendered judgment in their favor that the plaintiff take nothing by said action. The plaintiff has appealed from this judgment.
In asking for a reversal of the judgment, the appellant first contends that 'the lessees, the defendants and respondents herein, were guilty of unlawful detainer after notice to quit when the subtenants of the lessees, who were not served with notice to quit, continued to occupy said property after the lessees, in response to plaintiff’s demand either to pay the rent due or surrender possession, served notice on the landlord that they surrendered possession of said premises in compliance with said demand. Section 1161 of the Code of Civil Procedure, defining who are guilty of unlawful detainer, might seem to indicate that notice must be served upon the subtenants as well as upon the tenant before the landlord could maintain an action against the tenant for unlawful detainer. This section was construed in conjunction with section 1164 of the same code in the case of
Tujague
v.
Superior
Court,
Plaintiff makes the further contention that she was entitled to a judgment against the defendants for the rent and taxes due under the lease at the commencement of the action, notwithstanding the action in unlawful detainer would not lie in her favor. In other words,, the plaintiff claims that in this action for unlawful detainer, even if such action for the recovery of the leased premises must fail because the defendants had surrendered possession thereof prior to the commencement of said action, nevertheless, she is entitled to prosecute said action for the recovery of the rent and taxes due under the lease. The only authority cited in support of her position is the case of
Zellner
v.
Wassman,
*227
of the property.
(Arnold
v.
Krigbaum, supra.)”
In that case, this court denied a petition for a hearing therein. In our opinion, that decision correctly interprets the law relative to actions for unlawful detainer. To permit recovery for rent and taxes in an action of unlawful detainer after the landlord has failed to show that the tenant unlawfully detained possession of the property would often work a distinct hardship on the tenants. In the first place, he is haled into court in a summary proceeding in which there is denied to him certain procedural rights enjoyed by litigants in ordinary actions. He is denied the substantive right to file a cross-complaint or counterclaim in the action, and possibly he might be subjected to treble damages. (Sec. 1174, Code Civ. Proc.) The primary purpose of such an action is for the recovery of the possession of the property. The recovery of rent is a mere incident to the main object.
(Arnold
v.
Krigbaum,
Upon the two propositions advanced by the appellant, the trial court reached a different conclusion than that contended for by her. In our opinion, the trial court correctly determined the questions presented.
The judgment is affirmed.
Shenk, J., Langdon, J., Preston, J., Waste, C. J., and Seawell, J., concurred.
