It was not claimed upon the trial that the assessments for grading Hoseco and Irving avenues were legal and valid assessments. The answer sets up facts going to show that the assessment was illegally imposed, and directly charges that Hoseco avenue was not a public highway and that the defendant had no right to take, any proceedings to grade the same. The judgment of Trage againstthe defendant, of Merritt against the defendant, were read in evidence, showing that the other avenue (Irving) was not a public highway, and that, therefore, any assessment was illegal to grade the same. These judgments were read in evidence without objection, and they established a judicial annulling of the assessments.
The case then becomes a simple one. The village attempted to grade two avenues without right, and impose assessments therefor. Brundage was a contractor to grade one (Hoseco) avenue, and he *131was assessed as an owner of land. Tlie defendant compelled the plaintiff to pay this assessment and illegally and improperly received his money. Though taken under the formality of law, it was in fact illegal. An action to recover back money illegally collected by a municipality under forms of law lies. (Horn v. Town of New Lots, 83 N. Y., 100.)
There is no distinction between an actual receipt of the money and an application of the amount of the assessment compulsorily and under duress of sale, forced from the plaintiff by means of a deduction from a legal claim. The claim was thereby extinguished if the assessment had' been good. The defendant did have the money by an expenditure for its benefit. The illegality of the assessment cannot be set up as against the contract with the plaintiff. The defendant had a general power over the streets in the village, and it had power to cause the streets to be opened and graded and worked The plaintiff was not bound to see if the particular street or avenue which he contracted to grade was legally opened and the assessment proceedings properly followed (Moore v. The Mayor, 13 N. Y., 238 ; Horn v. Town of New Lots, 83 N. Y., 100.)
Ve think, however, that the plaintiff’s claim is barred by the statute of limitations. The money was paid in 1874. The assessment as such has never been set aside, and tbe plaintiff does not ask to set it aside beyond the payment so made by him. The action is one purely to recover back money paid under duress. That action was barred in six years. (Code Civ. Pro., § 382.) It is the old action of money had and received. The basis is contract. The law implies a promise to pay back money which'the party receiving cannot, in equity and good conscience, retain. The action was perfect at. the instant payment was made. A payment before the tax assessment was reversed, would not have been voluntary. (Bank of the Commonwealth v. The Mayor, 43 N. Y., 184.) The assessment was a judgment, and defense to it was of no avail to defend against it while it was unreversed. The case cited does not hold that a payment made on a void assessment can be recovered beyond six years after the payment was made. The demand that the plaintiff’s ■ assessment be set aside, so far as the money in question paid, does not increase the time in which to bring the action.
*132The plaintifi’s claim to the money does not depend in any way upon the setting aside of the assessment. If it is in fact illegal, it is a mere cloud upon title which it was proper to remove, but whether it be removed or not, the plaintiff is entitled to the money illegally paid under it.
The judgment should be reversed and a new trial granted, costs to abide event.
Present —Barnard, P. J., and Pratt, J.; Dykman, J., not sitting.Judgment reversed and new trial granted, costs to abide event.