Can there be a recovery of damages for the violation of a contract, the execution of which would constitute the commission of a crime by the officers of the defendant? This is the question to be considered on this appeal. For an understanding of the facts, we may state that the action was brought to recover damages for the failure of the defendant, a state bank, to make a loan to the plaintiff as agreed, and therewith to pay the sheriff of McHenry County March 15, 1910, the sum necessary to effect a redemption of certain real estate from a foreclosure sale, and for which the time of redemption expired on such date, and which, it is alleged, went to sheriff’s *628deed by reason of defendant’s breach of contract. Damages in the sum of $6,500 were demanded. The answer denies any contract whatsoever with respect to the payment of any obligations of the plaintiff, or any liens or foreclosure against the property; and as a further defense it is alleged that the defendant is a banking corporation organized under the laws of this state, and that the contract set forth in the complaint was wholly beyond the power and authority of any officer of the defendant to enter into by or on the behalf thereof, and wholly in excess of the powers of the defendant bank, and therefore void and unenforceable. One Wheelon, cashier of the bank, was made a party defendant, but in the course of the trial the action was dismissed by consent as to him. A verdict for $500 was rendered in favor of plaintiff, and judgment entered thereon. This appeal is from the judgment, and also from an order denying defendant’s motion for judgment notwithstanding the verdict. In this court the only distinctive assignments of error insisted upon are the second and third, raised in the motion for a directed verdict. These points are that the agreement alleged would be unlawful and consequently void and unenforceable, because its execution necessarily involved the commission of a crime, and, second, because the bank was not bound by the agreement, as the making of such an agreement was not within the express, implied, or ostensible authority of the cashier. We do not find it necessary to consider separately the last point, as it necessarily follows, from our conclusion on the first point, that it is well taken. It appears that the plaintiff had various conversations with Wheelon, the cashier, with reference to the bank making a loan sufficient to take up the indebtedness against his property and save it from going to sheriff’s deed. There were a number of mortgages against it, and over $4,000 was needed. For the purpose stated, an application and papers were executed for a loan of $4,000, which Wheelon thought he could procure. It appears that in the attempt to make this loan, Wheelon, either on his own behalf, or on behalf of the bank, was only acting as a negotiator; that it was not proposed that the bank itself make the loan. Wheelon found it impossible to secure $4,000 on the security offered. New papers were prepared for a loan of $3,000, or a trifle over, the mortgage or mortgages and notes running to the-*629bank. The plaintiff was to raise by other means something like $1,300, or enough, when added to the proposed loan, to make possible the redemption and the lifting of certain other mortgages on the property. As to the merits, we may say in passing that the evidence to sustain the verdict is, at the best, very slight. It discloses considerable uncertainty as to whether the minds met, as to what was to be done with reference to the additional amount to be raised by plaintiff. On his part, it tends to show that something was to be done by the bank, while, on the other hand, Wheelon claims to have understood,that the plaintiff was to raise his part and then call on the bank, so they could co-operate in making redemption and in discharging the mortgages. Defendant’s evidence is emphatic on this point. The papers were sent to a bank in another town for execution, for the accommodation of the plaintiff. They were executed before the cashier of that bank, and were by him placed in a basket in the bank where the employees of the bank deposited mail intended to be taken to the postoffice. No showing is made as to what became of them, but they were supposed to have been taken from the basket by somebody and mailed, and a copy of a letter written by the cashier of that bank was received in evidence, but there is no proof that the papers were in fact mailed. Wheelon testifies on behalf of the defendant that the defendant bank never received them. By reason of failing to receive the executed papers, or to hear from the plaintiff, it seems to have assumed that he had abandoned the deal, and therefore did nothing toward making a redemption, and the land went to deed. This recitation shows the circumstances surrounding the transaction. We do not understand it to be controverted that defendant, through the cashier Wheelon, agreed to make the loan. It is stipulated that the capital and surplus of the defendant was $12,000. Under the prohibitions of § 4657, Rev. Codes 1905, the most that the defendant could loan to any one person was $1,800, and by § 4668, Rev. Codes 1905, any officer of any banking association loaning to one person more than 15 per cent of its capital and surplus actually paid in is subject on conviction to a fine of not less than $50 nor more than $500. Hence, if this loan had been made, the cashier and any other officer of the bank participating in negotiating it would have been subject to prosecution for violation *630of this provision, and under the provisions of § 4663, Rev. Codes 1905, a forfeiture of the bank’s franchise would have been worked. The plaintiff was charged with knowledge of the'limitation of the amount which the bank could loan to one person. This is well established by authority. He is chargeable with knowledge of the law and of the amount of any loan which can lawfully be made on the capital and surplus possessed by the bank. There is a distinction between cases in which knowledge or constructive notice is furnished by public records and the statute, and those cases in which some fact not disclosed in that manner may affect the transaction. If the borrower must go to the records of the bank or sources extrinsic, the law, or public' records, he may not be charged with notice of the limitations of the bank’s authority; as, for instance, if he were seeking to secure a loan which the bank might ordinarily make, but which, by reason of the depletion of the reserve required by statute to be maintained, it was not permitted by law to make, and made a contract for such a loan, and such a contract was violated by the bank, he probably would not be charged with notice of-the condition of the reserve; but in the case at bar, the law and the ptiblic records give complete information as to the authority of the bank to make a loan of any given size. Mutual Guaranty F. Ins. Co. v. Barker, 107 Iowa, 143, 70 Am. St. Rep. 149, 77 N. W. 868; Bailey v. Methodist Episcopal Church, 71 Me. 472; Jemison v. Citizens’ Sav. Bank, 122 N. Y. 135, 9 L.R.A. 708, 19 Am. St. Rep. 482, 25 N. E. 264; Bissell v. Michigan Southern & N. I. R. Cos. 22 N. Y. 258; Monument Nat. Bank v. Globe Works, 101 Mass. 57, 3 Am. Rep. 322; Chambers v. Falkner, 65 Ala. 448; Hood v. New York & N. H. R. Co. 22 Conn. 1; Franco-Texan Land Co. v. McCormick, 85 Tex. 416, 34 Am. St. Rep. 815, 23 S. W. 123; Durkee v. People, 155 Ill. 354, 46 Am. St. Rep. 340, 40 N. E. 626; Memphis Grain & Package Elevator Co. v. Memphis & C. R. Co. 85 Tenn. 703, 4 Am. St. Rep. 798, 5 S. W. 52; Swindell v. Bainbridge State Bank, 3 Ga. App. 364, 60 S. E. 13; Miller v. American Mut. Acci. Ins. Co. 92 Tenn. 167, 20 L.R.A. 765, 21 S. W. 39; Ossipee Hosiery & Woolen Mfg. Co. v. Canney, 54 N. H. 295.
In Anderson v. First Nat. Bank, 5 N. D. 451, 67 N. W. 821, this court held that “so long as the matter remains executory it [bank] can *631fall back upon the defense of ultra vires/' and that “so long as the business remains unfinished the person dealing with the bank must take the risk of the refusal by the latter to proceed. He is bound to know that the act is ultra vires." The respondent seeks to sustain the judgment on the ground that the state alone can object that the contemplated loan was in excess of the amount permitted to be loaned to one person, under the provisions to which we have referred. This is doubtless a correct statement, when applied to many cases, but is not in the case at bar. It has often been held that, where the loan is made on a contract which has been fully executed the borrower cannot set up as a defense to an action on the contract the fact that it is ultra, vires, or entered into in excess of the authority of the corporation, because to permit him to make such a defense in an action brought to recover on the indebtedness would result in his retaining the benefits, and this would be inequitable and unconscionable. Having dealt with the bank and received his consideration in such case, he is es-topped from denying the authority of the bank to make the contract. However, many courts hold that the corporation cannot recover on the note or contract, but may maintain an action for money had and received, or other appropriate action. In the instant case, the plaintiff could undoubtedly maintain an action to cancel or recover possession of his notes and mortgages, if the bank had them and was seeking to retain or was claiming any rights under them. As a general rule, contracts to perform acts forbidden by express statute or which subject the parties to punishment, are unenforceable. 1 Page, Contr. §§ 329— 333, and authorities cited. This seems to be a quite simple and elementary proposition, and undoubtedly would be so treated, except that courts, evidently in attempts to meet the exigencies of individual cases, have refined away much of the force which common sense would seem to give the law. If it is a crime to do an act, what reason can be advanced for the enforcement of a contract which requires one of the parties to do the thing which constitutes the crime? Would not the enforcement of such contracts by courts be lending the processes of law to promote and encourage disobedience to law ? Would it not be employing the machinery intended to sustain and uphold the law to effect its destruction ? The law will not lend its support to claims *632founded upon its violation. Without entering upon an extended discussion of the subject, it may be said that the intent of the legislature in making the prohibition in question is important, and the law should be so construed as to carry out that intent. For whose protection was it intended? It is known to every person conversant with business life that a large percentage of bank failures, with resulting loss to stockholders and depositors, is caused by loaning too large a proportion of the stock or deposits to single individuals. Experience and observation had shown in a general way about what proportion might be loaned in the aggregate and leave the bank, under ordinary conditions, and circumstances, able to pay depositors as they make demand. They also serve as a guide in fixing the size of individual loans-While no exact margin of safety could.be established, the legislature, from a survey of the field of banking and conditions in the state, exercised' its judgment and concluded that 15 per cent of the capital stock and surplus was the most that the bank ought to be permitted to loan to anyone. This limitation is for the protection and to promote the safety of the stockholders, depositors and other customers, but especially of depositors and customers. Pratt v. Short, 79 N. Y. 437, 35 Am. Rep. 531. Recognition of this is probably one of the most potent reasons given by courts for holding that a bank may recover on an executed contract made in violation of the prohibition. They reason that the legislative intent was to protect the depositors, and that to deny recovery when the other party has the bank’s money would not only promote injustice, but would defeat the object sought to be accomplished. On the other hand, where to permit a recovery would defeat the end sought to be attained, the contract will not be enforced, and if not enforceable, damages for its breach cannot be recovered. 29 Am. & Eng. Enc. Law, 62; Pratt v. Short, 79 N. Y. 437, 446, 35 Am. Rep. 531. In the case at bar the bank positively denies the receipt of anything of value from the plaintiff. If the mortgages and notes ever reached it, the former were never recorded, and the defendant has at no time made any claim thereunder. Appellant claims that the papers were not delivered, and that, therefore, the contract was purely executory. Respondent argues that they were delivered, and that nothing remained to be done but for the appellant *633to make redemption, and that, therefore, the contract was fully executed on his part. It is, however, clearly shown by the record that appellant not only did not receive the papers, but that redemption and clearing the title of mortgages required still other acts on the part of respondent, and that the contract was not an executed one, notwithstanding the fact that the jury must have found that the bank received the papers, and this in the face of no evidence of mailing and of no positive evidence that they were received. At most the contract was only partially executed. One of the tests applied in cases of this nature is, Can the plaintiff establish his case otherwise than through the medium of an illegal transaction to which he himself was a party ? Elliott, Contr. § 646, and cases cited; Ray, Contractual Limitations, 146; Holt v. Green, 73 Pa. 198, 13 Am. Rep. 737. If this is the proper test, it is obvious that plaintiff must show the agreement to loan, and the amount of the loan contemplated. In doing so he discloses the illegality of the act on which his contract rests, and on which he relies for recovery. The burden of proof is at all times on the plaintiff. It would serve no usefull purpose to review in extenso the numerous and conflicting authorities bearing on the subject of ultra vires and illegal contracts. We find only one authority directly in point, and that, so far as the opinion discloses or we have been able to ascertain from an examination of the statutes of the state in which it is found, rests upon a statute which provides no penalty for a violation of the prohibition, other than the forfeiture of the franchise.
In Swindell v. Bainbridge State Bank, 3 Ga. App. 364, 60 S. E. 13, the facts were that the bank brought suits against Swindell & Company as principal and other defendants as indorsers on certain promissory notes. The principal defendants pleaded that the cashier of the bank made an agreement that it would from time to time loan them, up to the limit of $20,000, in such amounts as they might desire, the loans to be evidenced by notes; that the defendants agreed to give the bank all their domestic business, which amounted to a very large sum; that the bank in pursuance of this agreement loaned the defendants between $16,000 and $18,000, and refused to lend the balance of the $20,000 contracted for. The Swindell firm sought to recover dam*634ages for breach of the contract, and the answer set forth the elements claimed to constitute the damages, which were claimed by way of recoupment against the notes. The Georgia statute prohibited that bank loaning money, unless it was amply secured by good collateral, and the answer did not set up that the bank had sufficient capital and surplus to authorize, under the statute, loans on other security, and it was held that the court would take judicial notice of the fact that the capital of the bank was less than the sum necessary to entitle it to loan on other security than collateral. It held that the alleged contract to lend $20,000 was a positive violation of the express terms of the statute, and that, therefore, this fact constituted a valid defense to Swindell’s claim for damages. It was further held that the cashier had no authority to make an agreement to lend $20,000 of the bank’s money, and the court pertinently remarks: “If he had such authority, what limitation was there upon his right to lend all of the bank’s assets to one individual ? The direction of the bank is in its board of directors, and even if the directors could delegate to a merely ministerial officer, such as a cashier, their legislative and judicial functions, they could not do so unless expressly so authorized, either by the general law or by the charter or by-laws of the bank. . . . Even if such authority was conferred by the charter of the bank upon the directors, it would be void in this case, because in positive violation of the terms of the genefal laws contained in the Civil Code [1895] § 1916. ... Of course if the bank had no authority, through its directors, to make such a contract, the cashier could not have such authority. It therefore clearly follows that the bank could not have been held liable in damages for any breach of an agreement which the cashier had made with the defendants without authority from the bank and in direct violation of the banking laws of the state. This would be to give the cashier greater authority than the law gives to its creature, the bank itself.” It then held that notice of the power and legal capacity of a corporation, or of the bank, was indisputably imputed to all persons contracting with it, and that Swindell & Company were put on notice that the agreement made by the cashier to loan them $20,000 was illegal; that the law was for the benefit of the public, as well as for the stockholders, and that the power to ratify an *635agreement 'which the bank had no authority to make could not exist, and that neither the stockholders nor the directors, by acquiescence or express agreement, could ratify any contract made by any officer or by the bank itself, which the law expressly forbade. It then discusses the subject of estoppel on the part of the bank, and the court says that it is aware of no case which goes to the extent of holding that there can be an estoppel where the contract could not lawfully be made by the corporation.
We may observe in this connection that the same court holds that had the loan been consummated in violation of the law, a recovery of the money could be had by the bank. In this Georgia case the defendants had executed the contract to the extent of giving the bank its business, and loans had been made to it to the amount named. We are satisfied that the legislature of this state has announced, in the provision referred to and governing state banks, what it considers a rule of sound public policy, and one necessary to the protection of all persons dealing with a state bank, and that without disregarding the plain intent of that body this judgment cannot be sustained. It is therefore reversed, and the District Court is directed to enter judgment for the defendant.