The real question involved in this case is, whether the act of April 4, 1870, in regard to street work in San Francisco, dispenses with the preliminary steps which seem to be required to vest the board of supervisors with jurisdiction or power to order work to be done. These are the same statutory requirements which have always existed, a substantial compliance with which has often been held essential to the validity of the acts of the board. It is contended that all this is changed, because the act of 1870 directed that after the work had been performed, instead of having the assessment delivered to the contractor as formerly, the assistant city and county attorney should proceed to collect the assessments for the contractor, and in case of failure through no fault of the contractor, the board of supervisors should pay the amount due out of the street department fund. But this. *156presupposes a contract binding on the city and county. Without a contract there cannot be, legally,'an assessment at all. The position seems to be this: there really was no contract binding on the city and county, but there was something which purported to be a contract, under which work was done and an assessment made. A suit was brought on this against the lot-owners, in which it was adjudged that there was no assessment because there was no contract. Now, it is said the condition has happened which entitled the contractor to be paid out of the street fund; i. e., the assessment has been adjudged invalid. This is very much like claiming the contract has been adjudged invalid, therefore the city and county is liable..
This is, of course, not the case of one who really had a good contract which was erroneously adjudged to be bad in the suits on the assessments, where he could not be heard.
The fact that the lot-owner, when' sued on the assessment, is expressly authorized to plead in defense that the board of supervisors had no jurisdiction to order the work to be done, very much strengthens the case against appellant. It cannot be supposed that the legislature would authorize a defense on the part of the lot-owner in a suit upon the assessment, that there was no valid contract, and yet provide that the contract should thereupon become binding upon the city and county; that, in fact, the obligation upon the city and county to pay might depend upon its being declared invalid for lack of power in the officers to make it. Of course, it would be cpmpetent for the legislature to so provide, but we see nothing in the act to indicate such an intention. Such construction i-s contrary to the whole policy of the statute in regard to municipal contracts. The rule here has always been that there must be a valid contract before any liability can attach to the municipality. It can only act in the mode prescribed by law- This principle has been too *157often declared here to require reiteration. The city and county incurs no liability for work done under a void contract, nor is-there any guaranty on the part of the city and county that the forms of law have been complied with because its officers, without authority, attempt to contract. Those dealing with the city must see to it that its agents have power to act. Holding these views, it becomes unnecessary to consider the other points discussed.
Judgment affirmed.
Paterson, J., McFarland, J., Thornton, J., Mc-Kinstry, J., and Sharpstein, J., concurred.
Rehearing denied.