after making the foregoing statement, delivered the opinion of the court.
A motion is made to dismiss on the ground that the jurisdiction of the Circuit Court was invoked solely on the ground of the diversity of citizenship of the parti.es, and hence the decree of the Circuit Court of Appeals was final. The motion must be overruled. Diversity of citizenship was, it is true, alleged in the bills, but grounds of suit and relief were also based on the statutes of the United States, as from the discussion of the merits will be seen. Those statutes entered as elements into the decision of the Circuit Court of Appeals, and were necessary elements.
Howard
v.
United States,
Passing to the merits of the case,' the question turns upon the ' respective ’ equities of the parties. Appellants concede that the bank was not by the making of the loans to Henningsen entitled to subrogation to the rights', if any, of the United *410 States or the laborers or material-men, and also that if the Guar-, anty Company is entitled to subrogation to any right of the United States Government arising through the building contract, the bank can make no claim by reason of the assignment.
Henningsen, for we may: leave Clive out of consideration, entered into a contract with the United States to construct buildings. The Guaranty Company was surety on that contract. Its stipulation was not merely that the contractor should construct the buildings, but that he should pay promptly and in full all persons supplying labor and material in the prosecution of the work contracted for. He did not make this payment, and' the Guaranty Company, as surety, was compelled to and did make the payment. Is its equity superior to that of one who simply loaned money to the contractor to be by him used as he saw fit, either in the performance of his building contract or in any other way? We think it is. It paid the laborers and material-men and thus released the contractor from his obli ,ations to them, and to the same extent released the Government from all equitable obligations to see that the laborers and supply men were paid. It did this not as a volunteer but by reason of contract obligations entered into before the commencement of the work.
Prairie State Bank
v.
United States,
“Under the principles thus governing subrogation, it is clear whilst Hitchcock was entitled to subrogation, the bank was not. The former in making his payments discharged an obligation due by Sundberg, for the performance of which he, Hitchcock, was bound under the obligation of his suretyship. The bank, on the contrary, was a mere volunteer, who lent money to Sundberg on the faith of a presumed agreement and of supposed rights acquired thereunder. The sole question, therefore, is whether the equitable lien, -which the bank claims it has, without reference to the question of its subrogation, is paramount to the right of subrogation winch unquestionably exists in favor of Hitchcock. In other words, the rights of the parties depend upon whether Hitchcock’s subrogation must be considered as arising from and relating back to the date of the original contract or as taking its origin solely from the date of the advance by him.”
It seems unnecessary to again review the authorities. It is sufficient to say that we agree with the views of the Circuit Court of Appeals, expressed in its opinion, in the present case:
“Whatever equity, if any, the bank had to the fund in question, arose solely by reason of the loans it made to Henningsen. Henningsen’s surety was, upon elementary principles, entitled to assert the equitable doctrine of subrogation; but it is equally clear that the bank was not, for it was a mere volunteer, and under no legal obligation to loan its money.
Prairie State Bank
*412
v.
United States,
The decree of the Circuit Court of Appeals is
Affirmed,.
