OPINION OF THE COURT
For well over a century, parties to construction contracts in New York were permitted by decisional law and by statute to
In the case before us, plaintiff subcontractor is a Delaware corporation and defendant general contractor is a Florida corporation. The parties agreed that Florida law would govern their contract. Unlike New York, Florida allows pay-if-paid contracts. We must determine whether New York’s public policy against such contracts is so fundamental that it should override the parties’ choice of law. We hold that it is not, and that the parties’ choice of law controls. As we said in Cooney v Osgood Mach. (
I
On September 10, 1999, Telergy Metro LLC engaged defendant MasTec North America, Inc. to construct a fiber optic telecommunications network from Pleasant Valley to New York City. On November 28, 2000, MasTec subcontracted with plaintiff Welsbach Electric Corp. to do the electrical work for the project. The subcontract included a pay-if-paid clause stating that:
“Upon final acceptance of the Work by Contractor and Owner, Contractor will pay Subcontractor for the Work at the prices and schedule and in the manner described in Schedule 1; provided that, all payments to Subcontractor by Contractor are expressly contingent upon and subject to receipt of payment forthe Work by Contractor from Owner . . . (Emphasis added.)
The parties also agreed that termination, suspension or delay of the primary contract between Telergy and MasTec automatically terminated, suspended or delayed the subcontract on both the same basis and effective date. In the event of termination, suspension or delay, Welsbach would be allowed to recover from the owner amounts payable to MasTec less any anticipated gross profit from the work.
In August 2001, Telergy became insolvent and terminated its contract with MasTec, effectively terminating the subcontract. MasTec, and in turn, Welsbach, were not fully paid for their work. Welsbach sued MasTec for the unpaid balance under the subcontract.
In its fifth and eleventh affirmative defenses MasTec asserted that: (1) Florida law, which enforces pay-if-paid provisions, governs the subcontract; MasTec never received payment from Telergy and therefore owes no money to Welsbach and (2) Welsbach can seek recovery only from Telergy, pursuant to the termination provision in the subcontract.
Welsbach moved for partial summary judgment and dismissal of those affirmative defenses, arguing that the subcontract’s pay-if-paid provision violates Lien Law § 34. MasTec cross-moved for leave to serve an amended answer with two counterclaims. Supreme Court struck the two affirmative defenses, otherwise denied Welsbach’s motion, and granted MasTec’s cross motion. The court held that although pay-if-paid clauses are enforceable in Florida, they violate Lien Law § 34 because the subcontractor is forced to assume the risk that the owner will fail to pay the general contractor. On an appeal to the Appellate Division from so much of Supreme Court’s order as struck the affirmative defenses, that Court, with one Justice dissenting, affirmed. We now reverse.
II
Both sides agree that the subcontract’s pay-if-paid clause violates New York’s public policy.
Generally, courts will enforce a choice-of-law clause so long as the chosen law bears a reasonable relationship to the parties or the transaction (Cooney,
The freedom to contract, however, has limits. Courts will not, for example, enforce agreements that are illegal
Ill
Mechanics’ liens did not exist at common law; they are creatures of statute (Birmingham Iron Foundry v Glen Cove Starch Mfg. Co.,
In 1929 the Legislature enacted Lien Law § 34. The statute codified decisional law allowing contractors, subcontractors, material suppliers and laborers to waive their right to file and enforce a lien by a signed, written agreement expressing such intent. For decades thereafter, courts upheld these waivers pursuant to Lien Law § 34.
It was not until 1975 that the Legislature repealed the 1929 statute and replaced it with the current version of Lien Law § 34. Even then, the courts perceived no connection between section 34’s waiver prohibition and pay-if-paid contracts. Courts continued to uphold pay-if-paid clauses where the parties clearly agreed that payment to the contractor was a condition precedent to the contractor’s obligation to pay the subcontractor. (See Schuler-Haas Elec. Corp. v Aetna Cas. & Sur. Co.,
By the 1990’s there were growing doubts as to whether Lien Law § 34 could abide pay-if-paid contracts, as courts began to realize that such agreements arguably operated as forbidden waivers of the right to enforce a mechanics’ lien. As recently as 1995, the Second Circuit Court of Appeals certified to us the question whether Lien Law § 34 is violated when the parties agree that the subcontractor will not be paid if the contractor
Section 34 seeks to protect New York subcontractors from the oppressive use of bargaining power. Here, neither party is a New York corporation; notably, MasTec is a Florida corporation. As dissenting Justice Krausman pointed out, both are sophisticated commercial entities that knowingly and voluntarily entered into the subcontract. Considering these factors and given the checkered history of pay-if-paid clauses in the construction industry, we cannot say they are “truly obnoxious” so as to void the parties’ choice of law. In short, Welsbach has not sustained its “heavy burden” of proving that application of Florida law would be offensive to a fundamental public policy of this State (see Cooney,
Accordingly, the order of the Appellate Division should be reversed, with costs, plaintiffs motion, insofar as it seeks to dismiss the fifth and eleventh affirmative defenses interposed in the answer, denied and the certified question answered in the negative.
Chief Judge Kaye and Judges Ciparick, Graffeo, Read, Smith and Pigott concur.
Order reversed, etc.
Notes
. For an expansive analysis of Cooney, see Aaron D. Twerski’s article, A Sheep in Wolf’s Clothing: Territorialism in the Guise of Interest Analysis in Cooney v. Osgood Machinery, Inc. (59 Brook L Rev 1351 [Winter 1994]).
. Courts and lawyers refer also to “pay-w/iere-paid” clauses and sometimes use the phrases interchangeably. They are different. In Schuler-Haas Elec. Co. v Aetna Cas. & Sur. Co., the contract provided that payment was due from the contractor to the subcontractor when the owner paid the contractor. We found this not to be a condition precedent but a timing mechanism (
. Balbuena v IDR Realty LLC,
. See Blanc, New York Law of Mechanics’ Liens 1Í 10a, at 38-39 (1949); Griffin, A Treatise on the Law of Mechanics’ Liens of the State of New York § 13, at 70-73 (1929); Jensen, A Treatise on the Mechanics’ Lien Law of the State of New York § 217, at 263-265 (3d ed 1929); Ray, A Treatise on the Law of Mechanics’ Liens and General Contracting of the State of New York § 202, at 374-375 (1914); Kneeland, A Treatise upon the Principles Governing the Acquisition and Enforcement of Mechanic’s Liens § 134, at 149 (1876).
. See Cummings v Broadway-94th St. Realty Co., Inc.,
. See McCreary Co. v People,
. See also David Fanarof, Inc. v Dember Constr. Corp.,
. A recent article surveyed the treatment of pay-if-paid clauses across the nation (Carney and Cizek, Payment Provisions In Construction Contracts and Construction Trust Fund Statutes: A Fifty-State Survey, 24 Constr Law 5 [Fall 2004]). While some states have legislatively declared conditional payment provisions unenforceable or have restricted their application, California is the only other state that has voided pay-if-paid provisions as against public policy (see Wm. R. Clarke Corp. v Safeco Ins. Co., 15 Cal 4th 882,
