delivered the opinion of the count.
*247In March, 1889, C. P. Moorman conveyed an undivided moiety of land to the Lynchburg Land Company. This deed was not recorded until October, 1897. Soon thereafter, the grantee conveyed its purchase to the West Lynchburg Land Company. This last named company, having become the owner of the other moiety, divided the whole tract into lots and manufacturing sites, and in May, 1891, conveyed one of these sites to the Valley Engine and Machine Company. In duly, 1891, C-. W. Talley filed a mechanic’s lien for $6,283.73, being the amount due him for shops erected on this site under a contract with the Valley Engine and Machine Company, and subsequently brought suit to enforce his lien. At a sale made under a decree in that suit, the West Lynchburg Land Company became the purchaser, but before a deed was made, appellant acquired all the rights of the West Lynchburg Land Company, and the court appointed a commissioner to convey her the property, which was done by deed recorded in March, 1895.
In March, 1897, M. LT. Moorman recorded a judgment against C. P. Moorman, and had the same docketed. The deed from C. P. Moorman, dated March, 1889, conveying his undivided moiety in the land to the Lynchburg Land Company, not being-recorded, the judgment creditor brought this suit to enforce the lien of his judgment against certain alienees of said undivided moiety, including the manufacturing site derived by appellant through the mechanic’s lien suit.
The right of the judgment creditor to subject either the land in question, or the buildings thereon, is denied, and is the sole question presented for decision.
In considering this question, appellant must be regarded as standing in the shoes of the mechanic, and invested with all the rights that he had under the law by virtue of his lien. These rights passed to the prarchaser of the property from the court in the suit brought to enforce the mechanic’s lien. The question is, therefore, the same that it would be if the mechanic had him*248self bought the property at the judicial sale, aud it was now sought to subject the same in his hands.
Section 2483 of the Code provides, in part, that “ no lien or-encumbrance upon the land created before the work was commenced or materials furnished shall operate upon the building- or structure erected thereon or materials furnished for and used in the same, until the lien in favor of the person doing the work or furnishing the materials shall have been satisfied; nor shall any lien or encumbrance upon the land created after the work was commenced or materials furnished operate on the land or such building or structure until the lien in favor of the person-doing the work or furnishing the materials shall have been satisfied.”
We are only concerned here with the latter part of the provision quoted, which is that no lien or encumbrance upon the land created after the work was commenced, or materials furnished, shall operate upon the land or the structure until the lien in favor of the person doing the work or furnishing the materials shall have been satisfied. The judgment lien sought to be enforced in this suit was obtained five years after the suit to enforce the mechanic’s lien was instituted, and two years after the appellant had received her deed in pursuance of the decree in that case.
If the mechanic’s lien had not been enforced, and was still unsatisfied, then, under the express terms of the statute, this, after-acquired lien could not operate upon the land or the structure until the lien in favor of the mechanic had been satisfied. This must also be true where the lien has been enforced and the-mechanic, or some one who stands in his shoes, has bought the property, otherwise the statute would fail to afford the mechanic that protection which is its prime and only purpose. The provision that no after-acquired lien shall prejudice the lien in favor of the mechanic would be of little value if, after he became the purchaser, such after-acquired lien could fasten upon the *249property in Ins hands, and thereby deprive him of the benefit of his lien.
If the land in question had not been sold by C. R. Moorman, and the buildings had been erected thereon under a contract with him, this after-acquired lien could not, according to the letter and spirit of the statute, operate as a lien upon the land or buildings until the mechanic’s lien had been satisfied. It would seem that the judgment creditor, in a case like this, should have no greater rights against the land in the hands of a purchaser from his debtor than he would have had if the land still belonged to his debtor.
Appellee contends that the intent of the statute was to deal only with the liens existing at the time of the distribution of the fund arising from a sale of the property upon which the mechanic’s lien rested, and to fix the relative priorities between such liens. The language of the statute is, “ nor shall any lien or encumbrance upon the land created after the work was commenced,” etc. The section divides the liens or encumbrances into two classes—those existing upon the land prior to the commencement of the work, and those created after that time. There is no limitation as to how long before, or how long after, the commencement of the work, the lien must be created to come within the purview of the statute.
It is further contended by appellee that it was not the purpose of the Legislature to make the status of a purchaser, at a sale to enforce a mechanic’s lien, different from that of a purchaser at any other judicial sale; that the registry laws are as binding upon such a purchaser as upon all other purchasers. The statute in question is a wise and beneficent one, and its sole purpose, which was to secure a deserving class of citizens the reward of their labor, is too clear to admit of doubt. A spirit of equity and right characterizes the statute throughout. The lien of the prior encumbrancer is carefully preserved to him upon what the debtor had, before the mechanic expended his labor and *250material; and the mechanic, being prior in time as well as right, is given precedence upon both land and buildings as between himself and the subsequently created lienor.
It is suggested that, under section 2483, the mechanic has a lien only upon such interest in the land as his debtor had, and that by reason of the non-recordation of the C. R. Moorman deed, his debtor had less than a fee simple estate therein. The mechanic’s debtor had a fee simple title to the land free from all encumbrance at the time the work was done. Conceding that, by reason of the registry law, his title might thereafter be impaired, if assailed, by a creditor of his grantor, yet as to the mechanic, the judgment against his debtor’s remote grantor would, in contemplation of section 2483, be as much an after-acquired lien as if it had been obtained against the debtor himself.
It is true that but for section 2483, giving the mechanic these rights, the appellee would be entitled, under the registry law (section 2465 of the Code), to enforce the lien of his judgment against 'both the land and buildings in the hands of the alienee of his debtor, as a result of the failure of the Lynchburg Land Company to record its deed, until after the judgment was obtained.
The object, however, of section 2483 being to secure specific rights to a distinct and limited class, it necessarily removed the beneficiaries of those rights from under the operation of the general law where there was a conflict. The effect, therefore, of section 2483 is to modify section 2465, so far as the lien of the mechanic is concerned. Otherwise, the purpose to protect the mechanic would fail. To give section 2465 its general application in a case like this would violate both the letter and spirit of section 2483, and destroy the lien of the mechanic. His lien having attached long prior to the date of the judgment here asserted, he has the superior equity, as well as the mandate of the law, in his favor.
*251It being conceded at bar that tbe mechanic’s lien amounts to far more than the value of the property involved, no question can arise as to the right of appellee to have a resale for the purpose of subjecting any surplus, after satisfying the mechanic’s lien: "Whether or not such right to resell would exist under the facts of this case, even if it were supposed that a surplus might arise, is a question as to which no opinion is expressed.
For these reasons the decree appealed from is reversed, and this court will enter such decree as the lower court should have rendered, dismissing appellee’s bill with costs.