This action is brought under the Mechanics’ Lien Act of 1862. Sellers and Goldstein, being the owners of a certain lot in San Francisco, contracted in writing with Griblin for the construction of two houses for a price named, payable in instalments. Griblin contracted in writing with Zurn and Hannigan to do the carpenter work on the buildings and furnish the materials for the work. On the 12th of January, 1863, the sub-contractors gave notice to the contractor and the architect, that they could not complete their contract, and they then abandoned the work. The contractor, up to that time, had paid to the sub-contractors all that was due them for work done and materials furnished by them, and it is not alleged and does not appear that a further sum was to become due to them, for work done or materials furnished before that time. On the 15th of January, 1863, the plaintiff served upon the owners of the premises and the contractor, a notice of his claim as a material man, for lumber, etc., furnished to the subcontractors for the erection of the houses, the bill for which was on the 13th of January, 1863, certified by the sub-contractors to be correct. Upon the sub-contractors abandoning their contract, the contractor (Griblin) proceeded to complete *592the buildings, including that portion of the work uncompleted under the sub-contract; and at the time they abandoned their contract five thousand eight hundred and sixty dollars, as appears by the stipulation of the parties, “ remained to be earned and paid upon the original contract as between the original parties (said Gfiblin, Goldstein and Sellers,) in two instalments—one of fifteen hundred dollars, and the last of four thousand three hundred and sixty dollars—to be paid on completion of the job. Fully completed March 20, 1863.” The plaintiff sued to enforce his lien upon the lot as a material man, and he makes as defendants the owners of the lot and the sub-contractors.
The intervenor’s position is similar in all respects to that of the plaintiff. The defendants had judgment in the Court below.
’ The appellants state the question involved in the case as follows: “ Can the material man and laborer go upon the house, superstructure, etc., directly to the extent of the contract price due, or are they subject to all the conditions which may be created by the account between the contractor and his sub-contractor?” and in solving this question they lay down the proposition that, under the Mechanics’ Lien Law, the material man and laborer are entitled to a lien upon the premises, as principals, subject to the limitation only, that the amount of such lien shall not exceed the price agreed to be paid by the owner of the real estate to the original contractor for the whole work. If this proposition can be maintained, the question must be answered in the affirmative.
The securing of liens to certain classes of contractors, mechanics and material men, for the value of the labor and materials furnished by them in the construction or repair of buildings and certain other structures, has been a favorite subject of legislation in this State, and remedies have been afforded to them, differing in material respects from those granted to other classes performing apparently equally meritorious services. The Act of 1862, which went to a greater extent in giving liens where none had been directly contracted for by *593the parties, superseded all former statutes on that subject. It is provided by section one that original contractors shall have a lien to the extent of the original contract price, and that such contract shall operate as a lien in favor of the sub-contractors, laborers and material men; and it is declared in section three, that the lien created by such contract “ shall be and inure primarily to the benefit of all persons who, as employés of the original contractor, or [of] his assigns, shall perform work and labor, or furnish material for the construction or repair of such building,” etc.; and that “ after the payment of such material men, workmen and laborers, such lien shall inure to the benefit of the original contractor or his assigns.” Sections one, three, and seventeen, are the only ones in the Act that declare the liens that the several classes of persons may acquire under a contract for the construction of a building, the other sections having relation to that general subject, prescribe the manner of acquiring, enforcing and satisfying such liens.
The statute grants to the contractor who has entered into a contract in writing to construct a house, a lien upon the house while it is being constructed, and for a limited time after its completion, as security for the payment of the money becoming due to him, according to the terms of the contract. Although the language of section one is that he shall have a lien “ to the extent of the original contract price,” it could not have been the intent of the Legislature, and it certainly was not within their power to give a lien for an amount exceeding the sum to become due to the contractor. For if the contractor engages to construct the house in consideration, in whole or in part, of a debt then due from him to his employé, or of a sum of money paid to him by the employer upon the execution of the contract, that portion of the original contract price represented by the debt or the advance payment, could not become a lien upon the house. The amount of the contract price which is to be paid to the contractor becomes a lien upon the house as the same falls due according to the terms of the contract, and it is this lien that *594the statute declares shall inure primarily to the benefit of the employés of the contractor. No lien is provided for them by the statute other than such as arises under and flows from the original contract, and no other or greater lien could by legal possibility inure to their benefit, without subjecting the employer to a contract that he never made. The law does not create one lien for the benefit of the contractor and another for the benefit of his employés, but the lien arises, as the contract is performed according to its terms, for the benefit of both contractor and employés; and the law in enforcing the lien and distributing the sum realized, prefers the employés to the contractor—in other words, the law permits the employés to intercept a portion or all of the sum that was agreed to be paid to the contractor. They have this right, not for the reason that the employer’s property has been benefitéd by the labor or materials furnished by the employés, but because they have furnished the labor or materials for the contractor, to whom the law has granted a lien, for the amount which became due to him under the contract, in consequence of their labor and materials. It therefore necessarily follows that the employés cannot acquire a lien upon the house independent of the original contract, and that they are not entitled to a lien as principals, though entitled to be first paid out of the moneys becoming due under the contract, and which have been earned by the application of their labor or materials.
Are the employés of the sub-contractor subject to all the conditions that may be created by the account between the contractor and sub-contractor ? If the account is consistent with the terms of the contract entered into between the contractor and the sub-contractor, and payment has not been prematurely made, there can be no doubt that the employés of the sub-contractor are not entitled to demand from the contractor or employer "an amount exceeding the sum then due the sub-contractor, according to his agreement with the contractor. (See Bowen v. Aubrey, 22 Cal. 566, and cases cited.) The contrary doctrine cannot be true, unless it can be demon*595strated that a party who has fully complied with the terms of his agreement can be held responsible for an amount exceeding the amount he agreed to pay.
The mere fact that a portion of the work was done, and the materials furnished by the employés of the sub-contractor, could not entitle him to receive, either directly, or indirectly through payments to his employés a greater sum than he would have been entitled to had he personally performed all the labor and furnished the materials, in performance of the sub-contract. The action seems to have been brought in view of that principle, for it is alleged in the complaint that an amount exceeding the plaintiff’s demand was then due the sub-contractors, on their contract with the original contractor, who is entitled to all the residue of the original contract price, that he has not agreed to pay to the sub-contractors, and the contractor is not made a party to the suit. Under the principle now contended for by the appellants, if the sub-contractors had purchased of the material man, on credit, a bill of lumber, to be used by them in performance of their contract, and had thereupon abandoned the contract and appropriated the lumber to other purposes, the original employer would be held liable for the price of the lumber, and he, upon settlement with the contractor, would be permitted to deduct that sum from the contract price, although the contractor, in performance of the contract, had been obliged at his own expense to furnish the full amount of lumber required for the building. The statute, for the protection of employés, holds the payment made before it fell due, according to the terms of the contract, void as against the unsatisfied claims of the employés; but if payment has been made according to the terms of the contract, and before the material man or laborer has given notice of his claim according to law, we find no provision in the statute holding the employer or the original contractor liable for the payment of such claim, and certainly there is no rule of the common law leading to such a result. If in such case the contractor is not indebted to the sub-contractor he is not responsible for the labor or materials furnished to the sub*596contractor by his employés; and the employés not being entitled to intercept it as a portion of the amount due or becoming due to the contractor, cannot have a lien upon the house for their payment. Their only remedy in such case is against the sub-contractor; and if they are not willing to trust to his personal responsibility, they must see that his contract is adequate, as to the price and terms, to afford them sufficient security.
Judgment affirmed.
Mr. Justice Shafter, having been of counsel, did not sit in this case.