(аfter stating the facts). It is not contended that there was any express agreement between Martin and appellant that it should be subrogated to the rights of the prior mortgagees upon the payment of their debts out of the money which it loaned for that purpose, but, it is insisted that since it made the loan with the expressed understanding and agreement that its security upon the property thеrefor should constitute a first lien, the other mortgage debts having been paid off with its money, and that it is entitled to subrogation to the rights of said mortgagees as against the judgment lien of appellee, of which it was ignorant when it made the loan and took its security. It was not a volunteer in the payment of these other mortgage debts, the loan having been negotiated from it by the mortgage debtоr for the express purpose of paying them. “One who pays a debt at the instance of a debtor is not a volunteer.” Rodman v. Sanders,
The doctrine of subrogation is an equitable one, having for its basis the doing of complete and perfect justice between the parties without regard to form, and its purpose and object is the prevention of injustice. Cyc. also says, “And genеrally, where it is equitable that a person, not a mere stranger, intermeddler, or volunteer, furnishing money to pay a debt, should be substituted for or in the place of the creditor, such person will be sо substituted.” 37 Cyc. 371.
In Chaffe & Bro. v. Oliver,
In Capen v. Garrison,
It follows from the principles announced that under the doctrine of equitable assignment and subrogation, appellant, the Southern Cotton Oil Company, was entitled to subrogation to the rights of the prior mortgages to the amount of their claims paid by the money advanced by it, and to thе satisfaction therefor out of the property prior to the payment of the lien of appellee, which must be postponed to such payment. The decree is reversed аnd the cause remanded with directions to enter a decree in accordance with this opinion, subrogating appellant to the right to foreclose liens against said property fоr the amount so paid the prior mortgagees; and, if the same is not paid, that the property shall be sold and that amount of the proceeds thereof paid to said The Southern Cotton Oil Company free from the lien of the judgment.
