delivered the opinion of the court, November 20th 1882.
It is conceded that the plaintiffs are holders for value of the note in controversy, and that they are not affected with notice of any fraud on the part of Harley, the payee. It was alleged, however, that the consideration of the note was illegal, and that the plaintiffs knew, or were affected with notice of this fact.
The note is the joint note of the Antwerp Pipe Company and the Oil City Pipe Company, and was given in part payment of eighteen thousand three hundred and sixty shares of the stock of the Pennsylvania,Transportation Company. The Oil City Pipe Company was organized under the provisions of the Act of 29th April 1874, and under that Act it is provided that it should not be lawful, for any corporation organized under it to use any of its funds in the purchase of stock in any other corporation, or to hold the same, except as collateral security for a prior indebtedness. The court below instructed the jury that the consideration of the note being unlawful, the plaintiffs could not recover. This ruling is the only material error assigned.
The note contained upon its face no evidence of illegality, and was issued by corporations having ample power to make and issue commercial paper. The contract claimed to be ille*207gal had been fully executed, and the stock delivered. If the Oil City Pipe Line Company exceeded its corporate powers in the purchase of this stock, can it now repudiate its note in the hands of a holder for value upon the ground that the transaction out of which it grew was ultra vires? The law never sustains a defence of this nature out of regard for a defendant; it does so only where an imperative rule of public policy requires it. The instances are rare in which a corporation or individual has been permitted to set up its own wrong in order to retain both the property and its price. The defendant corporations have obtained the stock which they now allege they had no right to buy, and propose to retain it without payment. It would be difficult to imagine a defence with less merit, and the law would be exceedingly impotent were it to allow it. to succeed. The very point was decided in the Oil Creek and Allegheny River Railroad Company v. The Pennsylvania Transportation Company, 2 Norris 160, where it was held that where a corporation has entered into a contract which has been fully executed on one part, and nothing remains but for it to pay the consideration money, it will not be allowed to set up that the contract is ultra vires. This judgment was approved by all the members of the court who heard the argument, and was but declaratory of the law as ruled in a number of earlier eases. In Swan v. Scott, 11 S. & R. 164, it was said by Justice Duncan : “ The test whether a demand connected with an illegal transaction is capable of being enforced at law is, whether the plaintiff requires the aid of the illegal transaction to establish his case.” The converse of this proposition is equally true: that where the plaintiff has made out his case without calling the illegal transaction to his aid, the defendant who has enjoyed its benefits cannot set up the defence of ultra vires. In Northampton County’s Appeal, 6 Casey 305, it was said by Portee, J.: “ A man who has enjoyed a privilege has no right to say that because he ought not to have enjoyed it he will not pay for it. However unlawful the act, it would be unsound policy to give him this immunity.” To the same point are the remarks of Chief Justice Gibson in Lestapies v. Ingraham, 5 Barr at page 81: “ True it is that an illegal contract will not be executed; but when it has been executed by the parties themselves, and the illegal object of it has been accomplished, the money or thing which was the price of it may bo a legal consideration between the parties for a promise, express or implied, and the court will not unravel the transaction to discover its origin.” In Hipple v. Rice, 4 Casey 406, it was held, that where lots in a town were disposed of by lottery, each purchaser of a ticket being entitled to .a lot of equal size and value, to be determined by the drawing, and the owner of the *208land after the drawing of the lottery made a deed to the grantee in which the making of the lottery, the purchase of the ticket by the grantee and the drawing of the number, were recited, and in which same deed the grantor reserved a ground-rent of one dollar per year, a subsequent holder of the title of the grantee could not set up the lottery as a defence to the payment of the ground rent. In Bly v. Second National Bank of Titusville an indorsee upon a note discounted by the bank defended upon the ground that the loan was in contravention of the 29 th section of the Act of Congress of June 3d 1864, commonly called the National Bank Act, which provides that: “ The actual liabilities to any association, of any person or of any company, corporation or firm, for money borrowed .... shall at no time exceed one-tenth part of the amount of the capital stock of such association actually paid in.” The court below, Tkunkey, J., in an opinion which was adopted by this court, held the defence insufficient, and said: “ The plaintiff needs no aid from the original transaction to make out his case. Garfield is no party to the note. The defendant attempts its defeat, not by showing anything done at the time it was given, but because of the turpitude of the borrower and lender when Garfield borrowed money of the bank in excess of the amount the latter was permitted to loan to one person.”
When the plaintiffs offered the note in evidence they had a perfect prima facie case and did not need the aid of any illegal transaction to entitle them to a verdict. They required no aid from the contract for the sale' of the stock. That, as before observed, had been fully executed, and was a matter with which the plaintiffs had nothing whatever to do.
After the plaintiffs had made out their case .the defendants set up their want of corporate power to buy the stock, by way of defence. This with the stock transferred to them and unpaid for. The effect of this defence, if successful, would be to punish innocent parties who had no connection with the illegal transaction for the wrongful act of the defendant corporations.
It may be that as between the original parties the defendants could have rescinded the contract and declined to receive the stock. But they executed it; they accepted the stock and gave their note in payment, for which note the plaintiffs paid value in good faith. The defence of ultra vires by a corporation comes with a better grace if made before it lias discovered that it has made a bad bargain.
If, as the defendants allege, they have violated their charter, it is a matter that is within the cognizance of the attorney general.
Judgment reversed and a venire facias de novo awarded.