delivered the opinion of the court:
It is insisted by the appellant that by the execution and delivery of its check for $10,000 against the deposit account of the Fort Dearborn National Bank, the First National Bank of Helena assigned and transferred to the appellant, from that deposit account, an amount sufficient to pay the check on September 1, 1896, the time at which it was drawn, and as sustaining this contention appellant cites National Bank of America v. Indiana Banking Co. 114 Ill. 483, Abt v. American Trust and Savings Bank, 159 id. 467, and Gage Hotel Co. v. Union Nat. Bank, 171 id. 531.
The principle is clearly established by the foregoing and other authorities in this State, that the check "of a depositor upon his banker, delivered to another for value, transfers to that other the title to so much of the deposit as the check calls for, and the banker becomes the holder of the money for the use of the holder of the check, and is bound to account to him for the amount thereof, provided the party drawing the check has funds to that amount on deposit, subject to his check, at the time the same is presented. (Munn v. Burch, 25 Ill. 21.) The check operates as an absolute assignment of the fund on which, it is drawn, from the time it is delivered, as between the drawer and the payee, and the bank is bound as soon as the check is presented, and whatever sum stands upon the books to the credit of the depositor at the time of such presentation is absolutely assigned to the holder of the check. (Bickford v. First Nat. Bank of Chicago, 42 Ill. 238; Brown v. Leckie, 43 id. 497; Fourth Nat. Bank v. City Nat. Bank, 68 id. 398; Union Nat. Bank v. Oceana County Bank, 80 id. 212; Metropolitan Nat. Bank of Chicago v. Jones, 137 id. 634; Niblack v. Park Nat. Bank, 169 id. 517.) And the relation existing between the drawer, the check-holder and the banker becomes such, when there are sufficient funds on deposit to meet the check at the time of presentation, that, because such funds were appropriated at the time of the drawing of the check, the contract to be implied between the depositor, the banker and the check-holder is, that the check-holder, whoever he may be, may have his action and recover against the bank the amount, pro tanto, of the check. (Gage Hotel Co. v. Union Nat. Bank, supra.) In the latter case it was said (p. 536): “If the funds are in the bank when the check is drawn, the drawing is an appropriation, as between the drawer and the payee, of the sum of money named in the check, which is to lie in the bank until called for by a presentation of the check. It is true that in such a case there is no privity between the bank and the check-holder until presentment, and that priority in drawing a check does not give priority of right to 'the fund as against the banker, but that such priority of right is determined by the order of presentation.” It was held in Niblack v. Park Nat. Bank of Chicago, supra (p. 521): “It is also the law, where a bank holds a demand note, or a note past due, it has the right to charge such obligation up against the maker’s deposit account, and if it does so before á check drawn by the depositor is presented for payment, it will be entitled to hold the deposit against any check afterwards presented.”
In this case, on the 4th of September,—at least one day before the presentment of the check for payment,— the Chicago bank transferred the account, and by proper entries on its books credited the Helena bank with all the money held by it to the credit of the latter bank, which credit was made on a certificate of deposit, which was, in effect, a demand note. (Hunt v. Devine, 37 Ill. 137; Tripp v. Curtenius, 36 Mich. 494.) Appropriating the deposit fund in good faith, in pursuance of strict legal rights, for the purpose of protecting its own interests, and without notice of the appropriation of the money by drawing the check in favor of appellant, was not a wrongful act but one authorized by law, and absolutely transferred the legal and equitable right to the fund so deposited to the Fort Dearborn National Bank, the check not having been presented to it nor it having any notice of the same until the day after the transfer of the account. Under the recognized rule in this State there was between the Helena bank and the payee of the check an absolute assignment of $10,000 then on deposit with the Fort Dearborn National Bank, and no right existed in the Helena bank to change that deposit in any way or to so draw against it as to prevent the assignment, pro tanto, from being carried out. It is clear, the holder of the check had an interest in the fund so assigned, whilst it is equally clear that until the bank had notice it could pay subsequently drawn checks, or credit the amount of the deposit on any overdue paper of its own. The equitable interest of the check-holder, however, remained the same.
It is a principle controlling the marshaling of securities, that where one creditor can resort to two funds and another to one of them only, the former must seek satisfaction out of that fund which the latter cannot touch. In Pomeroy on Equitable Jurisprudence (sec. 1414) it is said: “If, therefore, the prior creditor resorts to the doubly charg'ed fund, the subsequent creditor will be substituted, as far as possible, to his rights. These rules must be taken with the modifications and exceptions that in their application the paramount encumbrancer shall not be delayed or inconvenienced in the collection of his debt, * * * that the rights of third parties shall not be prejudiced, and that the parties themselves are creditors of the same debtor.” Numerous authorities are there cited as sustaining these propositions.
The principle of marshaling securities has been frequently applied to cases where there is an equitable interest or lien on collateral securities. In Colebrooke on Collateral Securities it is said (sec. 98): “By this rule, a creditor having a lien upon two funds for the payment of his debt and a subsequent creditor a lien upon one, only, of such funds, the former is required to exhaust his remedy against the fund which is especially for his security before resorting to that in which the subsequent creditor is interested. The rule, however, is never enforced in cases where it would cause an injury or damage to the creditor holding such liens upon separate funds or would work injustice to other parties. The rule was applied where a merchant had forwarded his note to a broker for sale, and the proceeds, less commissions, remitted. The broker fraudulently pledg'ed the note, with other collaterals, to a bank to secure a loan to himself, of which the merchant received nothing. The merchant, learning of the misappropriation, gave notice to the bank and claimed to be subrogated to any surplus arising from other securities held by it after the payment of the loan. Subsequently, and before .the maturity of the loan, the note fell due and was paid without suit. Upon realizing the other securities the bank held a surplus in its hands. The merchant was entitled to be paid from such surplus, his voluntary payment not affecting his right of recovery.”
This principle is sustained Farwell v. Importers’ Nat. Bank, 90 N. Y. 483. In that case the merchant had an equitable interest in collaterals, which, with his note, were put up to secure the loan to the broker by reason of the broker’s misappropriation of the note, and is not equitably a stronger case for the marshaling of assets than where, as in this case, the bank had as security for its certificate of deposit and for its account due, notes aggregating about $30,000 and a deposit of over $20,000. Here, $10,000 of the amount deposited having been equitably assigned to the complainant, by reason of its appropriation by the bank before receiving notice of the drawing of the check the complainant was deprived of all interest in the deposit, and the Helena bank, or its receiver, who could have no greater interest than the bank itself, received the benefit of the application of the deposit by the Port Dearborn National Bank on its certificate of deposit, and the complainant, as holder of the check, had such an interest in the sum deposited that he should be subrogated, as against the Helena bank or its receiver, to the notes held by the Port Dearborn National Bank after the payment of the residue due the latter bank; and this principle of subrogation is applicable because, by reason of the appropriation of the fund by the bank with which the deposit was made, to the payment of a debt for which it held two distinct character of securities, one of those securities is, to an extent sufficient to pay the complainant, released from liability so far as the Port Dearborn National Bank was concerned, and the latter bank had lawfully used $10,000 of a deposit theretofore assigned to the complainant by the Helena bank. 2 Beach on Modern Eq. Jur. sec. 784; 1 Story’s Eq. Jur. secs. 635, 636.
It is a maxim of equity that “equity regards and treats that as done which in good conscience ought to be done,” and in writing of this maxim Mr. Pomeroy, in his work on Equity Jurisprudence, (sec. 365,) says: “The principle involves the notion of an equitable obligation existing from some cause; of a present relation of equitable right and duty subsisting between two parties; a right held by one party, from whatever cause arising, that the other should do some act, and the corresponding duty,—the ought,—resting upon the latter to do such act. Equity does not regard and treat as done what might be done or what could be done, but only what ought to be done. Nor does the principle operate in favor of every person, no matter what may be his situation and relations, but only in favor of him who holds the equitable right to have the act performed, as against the one upon whom the duty of such performance has devolved.” A court of equity acting upon this fundamental principle may go beneath the appearance of things and deal with the real facts, where the interest is a purely equitable one, recognized by courts of equity alone. When, therefore, a prior encumbrancer of two funds, by his election of remedies, deprives a junior encumbrancer who has a lien upon one of the funds only, from reaching the particular fund on which he has a lien, the junior encumbrancer, to the extent of his lien, should be substituted to the lien of the paramount encumbrancer upon the other fund bound, as against the debtor and all claiming under him by lien or title subsequent in time. (Gibson v. Seagrim, 20 Beav. 614; James v. Hubbard, 1 Paige’s Ch. 228; Clowes v. Dickinson, 5 Johns. Ch. 235.) Under a bill for marshaling securities, relief may be had in that character of case. The Fort Dearborn National Bank had a right to apply the deposit in payment of the indebtedness pro tanto to the extent of the deposit, and deprive the check-holder of any part of that deposit-as a fund assigned to him, but he had such an equitable interest in that fund by reason of its assignment by the check, that he is entitled to be subrogated to the extent of his check, with interest thereon from the time it was presented, to the fund to be derived from the collection or sale of the collateral securities held by the Port Dearborn National Bank as security on its certificate of deposit and bank account, after the residue is paid to it.
The superior court erred in decreeing that the Port Dearborn National Bank should deliver to the receiver of the First National Bank of Helena the collateral notes, but did not err in decreeing that from the proceeds of the same there should first be paid to the Port Dearborn National Bank the amount, including interest, due it, and to pay to Wyman the amount due on said check and interest, and to retain the balance as part of the assets of the First National Bank of Helena; nor was there error in the decree of the superior court in directing if there was not enough to pay Wyman in full, the amount unpaid should be allowed as a claim against said First National Bank of Helena, to be paid in due course of administration of its assets, and that the receiver pay the costs. It was error in the Appellate Court for the First District to. reverse the entire decree of the superior court and remand the cause, with directions to dismiss the bill.
So far as the superior court decreed that the Fort Dearborn National Bank deliver to the receiver of the First National Bank of Helena the collateral notes, its decree is reversed, but in all other respects the decree of said court is affirmed. For the error of the Appellate Court for the First District in reversing the entire case and-remanding with directions to dismiss the bill, its decree is reversed and the cause is remanded.
Beversed and remanded.