This is an action to recover damages for a refusal of the defendant to permit the plaintiffs to perform a contract in writing to put in certain wells and construct a system of waterworks for the defendant. The primary question is, whether the contract relied on, in its application to the facts, and to the contemplated mode, and the only possible mode, of performing it, was one that the defendant had a legal right to make; or, to put it in another form, whether the contract was possible of performance by the plaintiffs, if the mode of performance was restricted to that which was within the legal rights of the defendant.
*332The only source for the supply of water from which the town was authorized to draw, at the place mentioned in the contract, was Knowles’ Brook. The method prescribed by the contract was by driving wells, each consisting of a two and one half inch iron pipe, and connecting them together by pipes to which a pump was to be attached. These wells were twenty-five or thirty or more feet" deep, and in boring them it appeared that, several feet below the surface, there was a stratum of fine sand, several feet in thickness, which was nearly but not entirely impervious to water. Below this stratum there was a body of loose coarse gravel, which, according to the contention of the plaintiffs, contained a large supply of water. The plaintiffs’ witnesses testified that the water in this gravel came from a considerable distance, and being confined by this stratum, could not find its way, except in a very small degree, into the brook, and that the water gathered from the apparent' watershed of Knowles’ Brook was not a measure of the quantity that could be obtained from that locality. The water from all these wells flowed over their tops, and -from one of them, when a covering was put on leaving a small orifice, the water spouted up five or more feet. The general contention of the plaintiffs was that there was an actual watershed of from three to six square miles, exclusive of the apparent watershed of Knowles’ Brook, from which the water in this gravel was gathered, a large part of which could be reached by wells driven at the place prescribed in the contract. On the question whether it would have been possible for the plaintiffs to perform their contract, which called for a guaranteed supply of one million gallons of water per day throughout the entire year, the defendant objected to any evidence “ that did not tend to show that the quantity of water called for . . . could be obtained from Knowles’ Brook, or other sources from which the town was authorized to take water, or which would naturally find its way into said brook or such other sources, but the court overruled the defendant’s objections, and the defendant excepted.” The plaintiffs’ recovery was had upon the theory that this contract authorized the taking of water which had no connection with Knowles’ Brook, but which came underground in large quantities from long distances, and which, by reason of the subterranean geological formation, could be drawn to the surface *333there by these wells. Knowles’ Brook flowed through a part of the farm owned by the defendant, on which the wells were to be put, and it had its origin there; but the apparent watershed pertaining to it was only about three quarters or seven eighths of a square mile. The defendant’s farm contained one hundred and thirty-three acres, some portions of which were a long distance from Knowles’ Brook. The jury were instructed that, under the contract, the plaintiffs might procure water anywhere within the boundaries of the farm.
The Stoughton Water Company was organized under the St. 1886, c. 240, for the purpose of supplying the inhabitants of the town of Stoughton with water. It was authorized to take water by purchase or otherwise, from certain specified sources, one of which was Knowles’ Brook. It was important to private owners, as well as to the public, that its rights, in reference to the sources from which it might draw water, should be defined and limited. Accordingly, its franchise gave it the rights mentioned and no others. As a corporation it had no powers but those given by its charter, and it could not take water and sell it to the inhabitants, either by purchasing lands and sinking wells, or otherwise^ except from the authorized sources. See Bailey v. Woburn, 126 Mass. 416, 418 ; Forbell v. New York, 164 N. Y. 522; Bassett v. Salisbury Manuf. Co. 43 N. H. 569. If it had attempted to do so, its act would have been ultra vires, and might have been prohibited in the interests of the Commonwealth, or by a private person who was injuriously affected by it. The defendant was authorized by the statute to purchase the franchise and rights of this corporation, and it exercised this authority. It succeeded to the corporation’s rights and no other's. It is limited to the same sources for its water supply as the corporation was. The only source of supply to which this contract relates, that can be used by the town, is Knowles’ Brook.
As against ordinary corporations, there are equitable' limitations upon the defence of ultra vires to actions upon contracts partly or wholly executed. See Nims v. Mount Hermon Boys’ School, 160 Mass. 177, and cases there cited. Whether this defence could be availed of effectually in the present case, if the town had not purchased the franchise and the original corporation were in the place of the present defendant, it is unnecessary *334to decide. There are additional considerations affecting suits against towns; a contract not authorized by law is not binding upon a town or its taxpayers, and the courts will not enforce it. Parsons v. Goshen, 11 Pick. 396. Minot v. West Roxbury, 112 Mass. 1. Lowell Five Cents Savings Bank v. Winchester, 8 Allen, 109. Allen v. Taunton, 19 Pick. 485, 487. Anthony v. Adams, 1 Met. 284, 286. Claflin v. Hopkinton, 4 Gray, 502, 504. Hood v. Mayor & Aldermen of Lynn, 1 Allen, 103, 105. Agawam National Bank v. South Hadley, 128 Mass. 503, 505. Lemon v. Newton, 134 Mass. 476, 479. Neither the water commissioners as agents for the town, nor the town itself by a vote, could subject the taxpayers to a liability under a contract to take water from an unauthorized source.
The plaintiffs do not deny this proposition, but they rest their principal contention upon the decision in Stoughton v. Paul, 173 Mass. 148, which they treat as an adjudication conclusive in their favor in this case. We do not so consider it. That was a suit in equity to set aside the conveyance of the farm to the town, and this contract was introduced incidentally, as dependent for its validity upon the ownership of the farm. It was decided that the votes of the town did not limit the authority of the water commissioners. It was assumed, upon the record then before the court, that the purchase of the farm was with reference to taking and using the waters of Knowles’ Brook. The single sentence, in the report of the finding, in reference to intercepting other subterranean waters as well as those flowing into Knowles’ Brook, and the evidence on that subject, were not introduced as showing the principal object of the purchase. The purchase of the large tract was justified on the ground that it was thought necessary for the preservation and purity of the sources of water supply, and taking the waters of Knowles’ Brook by interception and percolation was held to be permissible. In the opinion it is said that “ The only question is whether the commissioners had authority to buy the land,” and, from the beginning to the end of the opinion, it contains no reference to the contract now before the court. The validity of the present contract, in reference to the questions now raised, was not in issue, and a refusal of an injunction by a dismissal of the bill involved nothing as to the defences to the contract which might be set up in an action at *335law afterwards. There was no jurisdiction in equity to enjoin proceedings under the contract on the grounds now relied on by the defendant. In reference to these matters the remedy at law was complete and adequate. Neither as a part of the substance of the suit then tried between the parties, nor collaterally, was there any adjudication of the questions now before the court. An adjudication as to the purchase of the land was not an adjudication as to this contract, subsequently made.
Because the contract was for the construction of waterworks in connection with a supply which the town had no legal authority to use, and because performance of the contract was impossible within limits legally permissible to the parties, the plaintiffs are not entitled to damages for the defendant’s refusal to perform it.
Exceptions sustained.