These suits depend on the same principles, and have been argued together. Both are founded on the Rev. Sts. c. 73, § 24, and were brought for the purpose of redeeming several parcels of land taken and set off to the defendants on execution, as the property of one John French. The judgments, on which the executions issued, were recovered on notes of hand given by one John Thompson, and indorsed by the said French. After the levy of said executions, the right in equity of French to redeem said lands was taken in execution and sold at public auction to one Brown, and by him, before this suit was commenced, was duly assigned to the plaintiff. It appears that at the time this note was taken by the defendants, on a loan made to Thompson, certain other promissory notes were pledged to the defendants, by said Thompson, as collateral security for the payment of said notes indorsed by said French, and other notes due from said Thompson to the defendants. It is also agreed that after the defendants recovered judgment against French, they collected a further sum on one of said collateral securities, which they have applied towards payment of certain notes of Thompson, indorsed by French, due to them, but in no part towards the payment of said judgment against French. A.nd the plaintiff insists that the defendants were bound by the principles of equity to apply the money collected towards payment of the said judgment. Whether they were thus obligated, is the general question submitted to the determination of the court.
The plaintiff’s claim is founded on the equitable rights of French, who, having been compelled to pay the debt of Thompson, was entitled, as is contended, to the notes pledged by him to the defendants to secure the payment of that debt.
*540That a surety, who has been compelled to pay the debt of the principal, is entitled for his indemnity to the property pledged, or the collateral security therefor given, by the principal to the creditor, is a well established and familiar rule of equity. This rule is not founded on any contract or stipulation to that effect between the parties, but on natural justice and equity. A surety, therefore, cannot maintain his right to be substituted in the place of the creditor, unless, from the circumstances of his case, hit claim be founded on substantial justice.
In the present case, it appears by an agreement with the de fendants, under the signature of Thompson, that the notes pledged were transferred to the bank as collateral security for the punctual payment of the note on which judgment was ren dered against French, or any other sum which Thompson had obtained, or might thereafter obtain, on loan or discount from said bank. And the directors of the bank were authorized to sell the securities pledged, and to apply the proceeds to the payment of said loans, after they should become payable and remain unpaid. It has been argued, that the construction of this agreement, or conditional transfer, is not clear and obvious. But, as it seems to us, the intention of the parties is manifest. The notes pledged were given as collateral security for all loans which had been, or might thereafter be obtained. This is the express language and the obvious meaning of the transfer, and no other construction can be given to it.
It was, however, further argued, that if the notes were pledged to secure all loans, yet the defendants were bound first to apply the money collected therefrom to the payment of the loan obtained at the time the security was given. But the language of the contract cannot be construed so as to give any priority or preference to any particular loan or debt. It does not appear that it was the intention of the parties to give any priority or preference to any particular loan ; nor do we perceive any motive that they can be presumed to have had for so doing. Nor is there any rule of law or equity by which the defendants were bound to appropriate the moneys collected on the collateral security to the payment of one loan rather than another.
*541The general rule is, that when there are several debts, the debtor may direct to which debt any payment shall be applied ; and if he fails to give any direction, then the election devolves on the creditor. In the present case, no such direction was given by Thompson, nor indeed by French. He, however, had no right to give any direction. We think therefore that the defendants had an undoubted right to apply the moneys, collected on the collateral securities, in the manner they have done ; and that neither the principal nor the. surety has any right now to alter the appropriations made by the defendants in pursuance of their rights under the contract. The surety has no right by way of substitution ; for if the principal has now no right to direct the appropriation of the moneys collected by the defendants, a fortiori the surety has not ; for he certainly cannot impair their rights under the contract with the principal, made bona, fide, at the time of the loan in question. If the defendants had afterwards colluded with the principal and hud given up the security, then indeed the surety would have been discharged, or would have been entitled to the benefit of the. security thus fraudulently given up. But this is not pretended. To entitle a surety to be substituted in the place of the creditor, he must pay the whole of the debt he is bound to pay ; a payment of part is not sufficient. So the rule is laid down by Lord Eldon. Ex parte Rushforth, 10 Ves. 420. The principle of substitution gives to the party substituted the rights of an assignee. The surety therefore cannot compel the creditor to assign the security, unless he first pays all he is bound to pay. If he does not, the creditor still has a right to retain the pledge for his own security and benefit.
This rule of equity applies to the present case. French is still responsible on other notes, for the security of which the pledge was given. And it makes no difference in equity, whether he is .responsible on one or several notes. The defendants have a right to hold the collateral security until all the notes are paid, for the payment of which French is responsible ; and to him it is immaterial on which of the nojes the money received bv the defendants was indorsed : or rather, it was im*542material before the sale of the equity to Brown. But since that sale, and since his right of redemption has been barred by lapse of time, he became interested. His interest, however, was and still is opposed to the plaintiff’s claim.
But supposing French had a right of substitution, and was entitled to stand in the place of the creditors, and to direct the appropriation of the collateral security ; we should then be brought to the consideration of the second ground of equity on which the defendants’ counsel relies. The question is, what equity does the case show in favor of the plaintiff. He has none certainly in his own right, for he .purchased with a full knowledge of all the facts. His only claim is through the medium of Brown and French. That he has all the rights which Brown had, in relation to the premises, is true ; but what were Brown’s rights ? IJe was not a surety, and has paid nothing for Thompson, the principal debtor. If he had any claim, therefore, on the defendants, he must have derived it through the medium of French, by the purchase of his equity of redemption. But that clearly gave him no right to claim any benefit of the security in which French and the defendants only were interested. At the time Brown purchased the equity, the defendants had received the money in dispute, and had indorsed it on a note for the payment of which French was responsible; and French alone could question that appropriation. If this claim had been disclosed at the time of the sale, and the purchaser had relied on it, he would undoubtedly have been entitled to the right of French, if any he had ; but it does not appear that any such disclosure had been made. It is therefore to be presumed as a fact, that none such was made, and that the right purchased by Brown was the right to redeem the estate by paying the amount of the execution and interest. Upon what ground of equity then can the plaintiff, in his own right, or in the right of French, claim any interest in the collateral security in question ? The claim is not only without equity, but is against equity ; and if it could be enforced, it would operate most unjustly, either against the defendants, or against French. For if the plaintiff’s claim should be allowed, French, if he is *543solvent, would have to pay the note in full, on which the amount is now indorsed ; and if unable to pay, the loss must fall on the defendants. And besides; French’s right of redemption is barred, so that he has no remedy whereby he can be indemnified.
The plaintiff’s claim is very much like that set up in the case of Green v. Kemp, 13 Mass. 515. The tenant in that case had purchased the mortgagor’s right in equity to redeem a mortgage, and in an action by the mortgagee to recover possession, he claimed the right to impeach and defeat the title of the mortgagee, on the ground that the mortgage was made on a usurious consideration ; and it was argued by the counsel for the tenant, that it might be that he purchased the premises on the ground that the mortgage was void, and that the consideration paid might have been enhanced by his knowledge of, and reliance upon, that fact. But the court held clearly that he had no right to question the validity of the mortgage, as he had purchased no right but the right to redeem it, and that he had not acquired the mortgagor’s right to avoid the mortgage on the ground of usury. It was truly said, “that the principle con-, tended for by the tenant’s counsel would serve to encourage fraud and injustice, rather than to restrain the taking of excessive usury.” The injustice of the present claim is equally apparent. The plaintiff seeks to appropriate to his own use and benefit the proceeds of the collateral security, which the defendants have appropriated according to their contract with their principal debtor, and in which appropriation the surety has acquiesced, and whose interest it is to confirm it, if any confirmation were necessary. Under these circumstances, it seems very clear that in whatever aspect the case may be viewed, no ground of equity appears on which these bills can be sustained.
Bills dismissed.
The chief justice did not sit in these cases.