Plaintiff brought this action against his former wife for declaratory relief seeking a determination of his obligations under a property settlement agreement executed in 1928 and a modification thereof executed in 1932. The trial court sustained a demurrer to the complaint without leave to amend, and plaintiff appeals from the judgment entered for defendant.
The following allegations of the complaint must be regarded as true for the purposes of this appeal. Plaintiff and defendant, who were married in 1919, separated from one another on or about December 24, 1927. At that time, plaintiff alleges, it was agreed that defendant would obtain the divorce, and that “in consideration of such divorce and for no other consideration whatsoever, [plaintiff] would enter into a property settlement agreement with defendant to settle and determine their respective property rights and to provide for defendant’s support and maintenance until she should remarry. ’ ’ In conformity with this plan, plaintiff and defendant entered into a separation agreement on March 21, 1928, by which, among other things, plaintiff was to pay to the defendant, Emily M. Moss, the sum of $250 per month during the period of her natural life until her remarriage. Thereafter the defendant wife brought an action for divorce, which plaintiff did not contest. An interlocutory judgment was entered on March 31, 1928, and a final judgment was entered on April 18, 1929. No reference was made to the separation agreement in either of the decrees. The modification of the agreement, made in October, 1932, reduced the monthly payments to $200 per month, but it provided that plaintiff’s failure to meet any payment would result in a reinstatement of the original sum of $250 per month. Plaintiff alleged that an actual controversy exists between the parties as to his duties under these agreements. A judgment was sought de *642 daring that the contract and modification thereof are void as against public policy and that he has no obligations or duties thereunder.
The law is settled that where a property settlement between husband and wife is entered into, conditioned upon an agreement to procure a divorce, the contract is against public policy and is invalid for that reason.
(Brown
v.
Brown,
8 Cal. App. (2d) 364 [
We are of the opinion that the allegations are sufficient to state a cause of action under the statute and would have justified the trial court in granting a declaratory judgment. (Code Civ. Proc., § 1060;
Pacific States Corp.
v.
Pan-American Bank,
Since we have held that this complaint was sufficient to authorize a declaration of plaintiff’s obligations under the contract, we must now consider whether the trial court abused its discretion in denying declaratory relief under the circumstances here presented. Plaintiff urges that the trial court abused its discretion and that there is no basis upon which its determination can be sustained. It is not necessary for us to consider each of the various grounds advanced by defendant in support of the trial court’s conclusion. The fact that plaintiff was a party to the unlawful bargain of equal fault with defendant and is therefore
in pari delicto,
is a consideration which could properly have been considered by the trial court as a sufficient reason for declining to grant declaratory relief. It is contended by plaintiff that such an action is not strictly an action in equity and, therefore, that the doctrine of
in pari delicto
should not be applied. It is also contended that the defense of
in pari delicto
has no application where the plaintiff is merely seeking to relieve himself from the executory portion of an illegal agreement, citing
Wassermann
v.
Sloss,
It is contended that the complaint also alleges facts stating a cause of action for cancellation of the agreement. The defendant, however, specified the statute of limitations as one of the grounds of her demurrer, and although there is no section of the code that expressly limits the time within which an action must be brought for cancellation of an instrument because of its illegality, section 343 of the Code of Civil Procedure provides that “An action for relief not hereinbefore provided for must be commenced within four years after the cause of action shall have accrued.” It appears from the face of the complaint that this action was brought more than ten years after the separation agreement was made and more than five years after the modification thereof; thus it is obvious that if section 343 is applicable to an action for cancellation for illegality, plaintiff is precluded thereby.
It is well settled in California that, as stated in
Piller
v.
Southern Pac. R. R. Co.,
The judgment is affirmed.
Shenk, J., Curtis, J., Edmonds, J., Carter, J., Traynor, J., concurred.
