delivered the opinion of the court.
The grounds of appellee’s demurrer are set out in substance,- by counsel in their brief, as follows:
“Can.a person who holds what he conceives to be an independent and com píete title in fee, intervene in a partition suit to which he is not made a party, * * * set up his tax deed as a complete defense, and when defeated, then come in and ask re-imbursement for taxes voluntarily paid on the lands of another, and this, too, when there is no proceeding, prayer in bill, or order in the decree, seeking to set aside said tax deed, or setting the same aside ? ”
The answer to this is, that appellant, by leave of court, *402did intervene by way of answer to complainant’s bill, claiming title through his tax deed. Complainant filed his replication to appellant’s answer, thus making an issue on appellant’s claim of title. By thus attacking appellant’s tax deed, he did in effect what he would have done if he had filed a bill to cancel the tax deed as a cloud upon the title.
The court decided this issue in favor of complainant in the original bill. The decree finds that the case was heard upon the bill of complaint and the answer of appellant, and upon evidence, etc., to sustain both bill and answer. It finds that the court had jurisdiction of the subject-matter and of all parties to the proceeding; that title in fee was in the parties as alleged in the bill. It also finds that no person or persons, other than the complainant and the last named defendants (James M. Pulliam, Ralph Boaz and William Boaz,) have any claim, interest in or title to the said lands, or to any part thereof, in possession, remainder, reversion or otherwise, and that Percy E. North and L. DeWitt (his tenant), have neither any interest therein.
Appellant abides by the decree. This finding and decree as effectually disposed of appellant’s tax deed as if appellee had filed a bill to set it aside as a cloud upon his title and had obtained a decree to that effect. But if he had done so, the owners of the land would have been required to do equity by re-imbursing appellant for the taxes he had paid.
Appellant asks that they be required to do in the case at bar what they would have been required to do if they bad been complainants seeking to set aside his tax deed, inasmuch as in the case at bar his tax deed has been litigated and held for naught.
Why is he not entitled to the relief prayed? Courts of equity look to substance rather than to form. It is also a well established rule of practice, that when a court of equity has before it the necessary parties and has jurisdiction of the subject-matter, that it will not leave another tribunal to finish its work, but will do complete justice to all parties upon all matters involved in the case.
*403Nor was appellant an improper party defendant in the case. Sec. 6 of Chapter 106, Hurd’s Stat., entitled Partition, provides “that every person having any interest, whether in possession or otherwise, and who is not a petitioner, shall be made a defendant to such petition.”
Appellant claimed title and seems to have been in possession through this tenant, De Witt, who was made a party defendant to the original bill.
Sec. 15 of the same chapter provides: “The court shall ascertain and declare the rights, titles and interest of all the parties to such suit, the petitioners as well as the defendants, and shall give judgment according to the rights of the parties.” Appellant by his petition asks that this shall be clone; “ only this and nothing more.”
Counsel for appellant quote from Gage v. Eddy, 186 Ill. 432:
“ There is no rule of law or maxim of equity which he (the purchaser at a tax sale) may invoke, to compel the owner of property to re-imburse him the amount he has invested in the venture, except in the event the property owner asks the aid of a court of equity to cancel the tax purchases, as clouds upon his title to his property.”
Admitting this to be the law, we think that the action of appellee in replying to appellant’s answer, and thereby making an issue upon his tax deed, trying that issue and obtaining a decree that virtually cancels such deed, in effect brings this case within the exception stated in the above quotation.
The judgment of the Circuit Court will therefore be reversed and the case remanded, with directions to ascertain and decree to be paid to appellant such amounts, if any, as the owners of the land partitioned would have been required to pay him if they had filed a bill to cancel his tax deed as a cloud upon their title, and had secured a. decree to that effect. .Reversed and remanded.