Plaintiffs and cross-defendants Glenn E. Sewell Sheet Metal, Inc., and Glenn E. Sewell appeal from an adverse judgment in their action for declaratory relief against defendants and cross-complainants’ Nick and Ellen Loverde, Sewell’s sublessors, to declare Sewell’s sublease unenforeible and to recover a $3,000 deposit. The Loverdes cross-complained against cross-defendants and cross-complainants Bertha A. Miller, also known as Bertha A. Perkins, and Thomas C. Perkins alleging that if the Sewell-Loverde sublease is unenforeible the Loverdes’ lease with the Perkinses .is likewise unenforeible.
This controversy arises out of the abandonment by Sewell of premises leased to the Loverdes and subleased to Sewell. .The abandonment occurred when a septic system on the premises failed, precluding further use of the premises as a trailer court unless adequate sewer connections were made.
On September 1, 1948, the Perkinses leased a parcel of land to Howard and Evelyn McCrum for a 10-year term with an option to renew for five years. The premises included a house and a store. The house was to be used as a home; the rest of the premises could, be used only for retail-store, restaurant,.or .:agricultural uses. The lessees covenanted to.'maintain the premises in as good or better condition than they were in at' th’e time of the lease. ' " ’
*670 On August 13, 1951, with the approval of the Perkinses, the MeCrmns assigned the lease to the Loverdes, who assumed the covenants therein. On September 1, 1958, the Loverdes exercised their option to extend the lease to 1963. At the same time the lease was modified to grant the Loverdes another option to renew for an additional three years, i.e., until August 31, 1966, and to remove all restrictions on the use of the premises thus permitting the Loverdes to continue using the premises for an auto repair business, a use not within the original permitted uses.
On May 6, 1963, Sewell, who had previously subleased the store building for use in his sheet-metal business, subleased the entire premises from the Loverdes for the period of the additional three-year option (1963-1966). At that time the Loverdes were using the premises as a trailer park for which they had previously installed the necessary improvements, including the septic system involved in this action.
Sewell successfully operated the premises as a trailer park until sometime after September 1964, when difficulties arose with the septic system. Sewell spent some $3,500 to alleviate the resulting pooling of effluent on the grounds, but was unable to rectify the defect. On September 16, 1965, the Sacramento County Department of Public Health ordered Sewell to connect the trailer park sewage system to nearby public sewer lines or to terminate the use of the premises as a trailer park. 1 After determining that the required connection would cost approximately $7,500, and that neither the Perkinses nor the Loverdes were willing to pay for the connection, Sewell elected to terminate his operation of the trailer park and ordered the occupants to leave. After unsuccessfully attempting to negotiate a return to his sublease of the store alone, Sewell abandoned the premises 11 months before the termination date of the sublease and paid no rent for that period. *671 Sewell contends that he was justified in abandoning the premises and that he therefore owes no rent and is entitled to the return of $3,000 he paid in advance. 2
The question presented is which party had the duty under the terms of the lease and sublease and the applicable law to comply with governmental laws and orders governing the use of the premises.
At the outset we distinguish two similar but unrelated duties that often overlap and may create unnecessary confusion. The first, not directly involved in this case, is the duty to repair or maintain the premises in the absence of special laws or governmental orders. Since no general public policy requires that private property and the improvements thereon be maintained in good condition at all times, a private property owner is under no general duty to correct defective conditions,
3
and the fact that he leases the premises to another does not alter the rule.
(Cowell
v.
Lumley
(1870)
A different conclusion must be reached however, when preventative or reparative áctions are required by laws and orders governing the premises and their uses. In such a case •public policy requires that someone at all times be obliged to comply with such laws and orders, and parties to a lease will not be permitted to create a hiatus in their respective duties of compliance. One or more of the parties interested in the property must therefore be obliged to comply with some or all of the laws and orders affecting the premises. Since the property owner is initially under the duty to comply with all laws and orders, he, as lessor, remains subject to that duty unless it is assumed by the lessee. (1 American Law of Property,
supra,
§ 3.80, pp. 353-355; 2 Walsh, Commentaries on the Law of Real Property (1947) § 165, pp. 232-233. Cases on "the allocation between a lessor and lessee of the duty to comply with applicable laws are collected in Annot. (1924)
There are three ways in which a lessee may obligate himself to comply with laws and orders. One is unrelated to this case ; 6 the other two will be discussed in the order in which they arose in the transactions before us.
A lessee who voluntarily puts the premises to uses different from those to which they were put before the creation of his tenancy, and thereby causes the premises to fall within the scope of existing laws
7
not previously applicable to the premises, must bear the burden of conforming his new use to
the
requirements
of the
law and of taking all action necessary to rectify any subsequent instances of noncompliance. This rule applies whether the lessee’s obligation is viewed as arising from an implied assumption of the lessor’s initial
*673
duty not to alter the use of the premises under his control without complying with all applicable laws (see
Pross
v.
Excelsior Cleaning & Dyeing Co.
(1919)
We turn to the relation between the Loverdes and Sewell who, as between themselves, were lessor and lessee respectively. Since Sewell did not change the Loverdes ’ use of the premises as a trailer park, no assumption of the duty to comply with the laws applicable to that use arose under the rule discussed above. A lessor is free, however, to transfer *674 his obligations to his lessee by an agreement in which the lessee assumes the duty of compliance and the risk that the performance of such duty may prove expensive or inconvenient.
We must therefore interpret the terms of Sewell’s sublease
9
to determine whether he assumed that duty and risk. (Civ. Code, §§ 1635-1657;
Realty & Rebuilding Co.
v.
Rea
(1920)
*675 Sewell’s general covenant to comply does not, however, stand alone. Even if the sewer connections were classified as “substantial” within the meaning of the foregoing rule, provisions of the sublease other than paragraph D make it clear that Sewell assumed the duty to comply with the order in question.
Sewell not only covenanted to comply with all applicable laws, but represented, in paragraphs E and P, that he had examined the premises and knew of their condition, that the Loverdes had made no representation as to their condition, and that the Loverdes were relieved of all obligations as to the repair or maintenance of the improvements thereon. In the absence of a covenant by the Loverdes to repair or maintain the improvements, their only obligation in this respect would arise from the duty to comply with applicable laws.
11
Under these circumstances the Loverdes’ disclaimer of any obligation at all under paragraphs E and P can be given effect only by interpreting them to relieve the Loverdes of any duty to take those “substantial” curative actions required by law that the language of paragraph D alone would not cover. (See
Rose
v.
Long
(1954)
Any doubt that might persist that Sewell assumed the risk of conforming the sewer system to the governmental requirements is dispelled by a consideration of the character of the premises involved. The primary use of the premises was for a trailer park, the principal features of which are the ground space and pads upon which the trailers rest, and the water, *676 utility, and sewer facilities to which the trailers connect. Accordingly, one who intends to operate a trailer park must know that laws respecting and regulating such facilities would be of primary importance to him and would be those most obviously included in a clause requiring compliance with all applicable laws.
Sewell knew that adequate sewage disposal was essential, and he testified that he assumed that the sewer system was not connected to the public sewer. He lmew or should have known that cesspool systems do not last forever and that when the septic system failed public sewer connections would be required. 12 He took the premises “as is,” relieved the Lover des of the duty to repair or maintain the improvements, agreed to indemnify them for any liability arising out of his use of the premises, and assumed the duty of compliance with all laws respecting the premises. Under all the circumstances Sewell’s covenant to comply included the obligation either to connect the sewer system to a public sewer or to cease using the premises as a trailer park. Accordingly, he assumed the risk that such compliance might interfere with his use of the premises or render it less profitable.
Having voluntarily assumed this duty and its attendant risk, Sewell may not avail himself of either the common law doctrine of frustration, or the doctrine relating to the destruction of the subject matter of a hiring as codified in Civil Code section 1932, subdivision 2.
“ It is settled that if parties have contracted with reference [to the frustrating event] or have contemplated the risks arising from it, they may not invoke the doctrine of frustration to escape their obligations.”
(Lloyd
v.
Murphy
(1944)
The judgment is affirmed.
McComb, J., Peters, J., Tobriner, J., Mosk, J., Burke, J., and Sullivan, J., concurred.
Notes
The Department of Public Health invoked Health and Safety Code section 18377 and Sacramento County Ordinance No. 378 in support of its order. Section 18377 had previously been in force as sections 18378 (1955-1961) and 18683 (1941-1955) Health and Safety Code, respectively. Section 18377, as amended by Statutes 1965, chapter 1510, page 3552, section 25, is now section 18054, Health and Safety Code. The section in its various forms, has always prohibited the deposition of trailer effluent upon the ground. Sacramento County Ordinance No. 378, .enacted October 3, 1950, regulates the operation of sewage disposal systems in unincorporated areas of Sacramento County. The foregoing laws were in effect before the assignment of the master lease to the Loverdes and at all times thereafter. The validity of the action of the Sacramento County Department of Public Health is not in issue.
UntiI Ms abandonment, Sewell paid all rent as it came due, including the full rental for the first six months, even though he had made a $3,000 advance payment to cover part of that rent. His rent for the entire premises was $725 per month, representing the $500 per month owing from the Loverdes to the Perkinses plus an additional $225 per month. When he had subleased the store building alone his rent had been $140 per month.
He may not, however, allow property under his control to become a nuisance and, if he permits others to come upon the property, he may be required to maintain the property in a safe condition. (See 2 Witkin, Summary of Cal. Law (7th ed. 1960) pp. 1440-1472.)
Specific preventative or reparative duties may of course be imposed by statute (e.g., Civ. Code, § 1941) or special circumstances (see, e.g.,
Janofsky
v.
Garland
(1941)
The lessee may assume further duties by agreement and, in special circumstances, additional duties may be imposed by law. (See fn. 3, infra.)
In some states, including California, the creation of the lessor-lessee relationship itself imposes upon the lessee a minimal duty of compliance with applicable laws. Such a duty extends only to those required activities that are truly minor in expense and inconvenience, that arise out of the ordinary course of the lessee’s use of the premises, and' that would in.no event impose upon the lessee a burden greater than that imposed by the common law duty to prevent waste. (See
Wall Estate Co.
v.
Standard Box Co.
(1912)
We need not consider the question whether it is the lessee’s or tjie lessor’s duty to comply with a new law passed after the lessee has undertaken a new use of the premises.
We do not consider the application of the foregoing rule to those situations where the lease restricts the use of the premises, nor those where the lessor has a direct interest in the specific use to which the lessee puts the premises (e.g., where the rent is related to the profits to he derived from the lessee’s use).
The relevant provisions of the sublease are:
“(D) Sub-lessee is conversant with all of the terms of the basic lease and the modification thereof and he agrees that he will occupy and dispose the leasehold estate in a manner commensurate with the requirements and limitations imposed by said basic lease and by the requirements of applicable, federal, state, county, city and district laws, ordinances, rules and regulations pertaining to any and all segments of the operations and uses to which the property may be subjected or put.
“(E) That the Sub-lessee has examined and knows the condition of said premises, and that no representations as to the condition or repair thereof have been made by the Sub-lessors, prior to, or at the execution of this lease, that are not herein expressed or endorsed hereon.
‘ ‘ (F) Sub-lessors shall be under no obligation hereunder for the repair or maintenance of any of the improvements upon said demised premises.
“ (I) Sub-lessee assumes all risk of loss by reason of injury or damage to person or property occasioned in consequence of the use and occupation of said premises by Sub-lessee and Sub-lessee does hereby specifically agree to indemnify Sub-lessors from and against all manner of claims, cost, expense or damage in consequence of the use and occupation of such property. ...”
See: Annot.,
supra,
See text accompanying footnotes 3 and 4, infra.
The laws here involved had been in effect long before this sublease was made. (See fn. 2
infra.)
Parties to an agreement are presumed to have contemplated the laws and ordinances relating to the agreement.
(Brown
v.
Kling
(1894)
The doctrine of frustration as applied by courts in the United States originated in England at-the turn of the century.
(Krell
v.
Henry
[1903] 2 K.B. 740 [C.A.];
Blakely
v.
Muller,
19 T.L.R. 186 [K.B.].) It is the most broadly stated of the discharge of duty doctrines and may, in consequence, appear to- overlap other such doctrines: e.g., “ Impossibility of Performance” (Civ. Code, §1511; see 6 Williston, Contracts, § 1935, pp. 5418-5420;
Lloyd
v.
Murphy,
supra; Rest., Contracts, ch. 14, pp. 843-889); “Mistake” (Civ. Code, § 1689;
Bank Line Ltd.
v.
Arthur Chapel
*677
& Co.
[1919] A.C. 435, 444-445; “Destruction of Subject Matter” (Civ. Code, §§ 1932, 1933, discussed
infra.)
It is, however, a separate doctrine. Despite the broad spectrum of rationales for and parameters. of the frustration doctrine that have been utilized or proposed, the rule quoted above from
Lloyd
v.
Murphy
applies to all such combinations. (See, the surveys of “frustration” doctrines contained in Smit,
Frustration of Contract: A Comparative Attempt at Consolidation
(1958) 58 Colum.L. Rev. 287 (civil law) and Note (1960) 59 Mich.L.Rev. 98 (common law) ; see also, Farnsworth,
Disputes Over Omission in Contracts
(1968) 68 Colum. L.Rev. 860; Annot. (1962)
Section 1932 provides: 1 ‘ The hirer of a thing may terminate the hiring before the end of the term agreed upon: .... 2. When the greater part of the thing hired, or that part which was and which the letter had at the time of the hiring reason to believe was the material inducement to the hirer to enter into the contract, perishes from any other cause than the want of ordinary care of the hirer. ’ ’
Although section 1932, subdivision 2 apparently codifies the civil law doctrine regarding the destruction of the subject matter of a contract (see the annotations of Messrs. Haymond and Burch, members of the California Code Commission, to § 1932, Civ. Code of 1872, citing Edwards, Bailments pp. 331-338 and Story, Bailments, §§ 418-420 which discuss the civil law), a similar doctrine had earlier developed in this state as a principle of common law.
(Ainsworth
v.
Ritt
(1869)
