CODE OF CIVIL PROCEDURE
PART 3. Special Proceedings of a Civil Nature
TITLE 3. Summary Proceedings
CHAPTER 4. Summary Proceedings for Obtaining Possession of Real Property in Certain Cases
§ 1161. Unlawful detainer
A tenant of real property . . . is guilty of unlawful detainer:
1. When he or she continues in possession, in person or by subtenant, of the property, or any part thereof, after the expiration of the term for which it is let to him or her; . . .
2. When he or she continues in possession, in person or by subtenant, without the permission of his or her landlord . . . after default in the payment of rent, pursuant to the lease or agreement under which the property is held, and three days' notice, in writing, requiring its payment, stating the amount which is due, the name, telephone number, and address of the person to whom the rent payment shall be made, . . . shall have been served upon him or her and if there is a subtenant in actual occupation of the premises, also upon the subtenant . . .
3. When he or she continues in possession, in person or by subtenant, after a neglect or failure to perform other conditions or covenants of the lease or agreement under which the property is held, including any covenant not to assign or sublet, than the one for the payment of rent, and three days' notice, in writing,requiring the performance of such conditions or covenants, or the possession of the property, shall have been served upon him or her, and if there is a subtenant in actual occupation of the premises, also, upon the subtenant. Within three days after the service of the notice, the tenant, or any subtenant in actual occupation of the premises, . . . may perform the conditions or covenants of the lease or pay the stipulated rent, as the case may be, and thereby save the lease from forfeiture; provided, if the conditions and covenants of the lease, violated by the lessee, cannot afterward be performed, then no notice, as last prescribed herein, need be given to the lessee or his or her subtenant, demanding the performance of the violated conditions or covenants of the lease . . .
4. Any tenant, subtenant, or executor or administrator of his or her estate heretofore qualified and now acting, or hereafter to be qualified and act, assigning or subletting or committing waste upon the demised premises, contrary to the conditions or covenants of his or her lease, or maintaining, committing, or permitting the maintenance or commission of a nuisance upon the demised premises or using the premises for an unlawful purpose, thereby terminates the lease, and the landlord, or his or her successor in estate, shall upon service of three days' notice to quitupon the person or persons in possession, be entitled to restitution of possession of the demised premises under this chapter. For purposes of this subdivision, a person who illegally sells a controlled substance upon the premises or uses the premises to further that purpose, shall be deemed to have committed a nuisance upon the premises.
5. When he or she gives written notice as provided in Section 1946 of the Civil Code of his or her intention to terminate the hiring of the real property, or makes a written offer to surrender which is accepted in writing by the landlord, but fails to deliver possession at the time specified in that written notice, without the permission of his or her landlord, or the successor in estate of the landlord, if applicable . . .