This action was brought to foreclose a mechanic’s lien upon the north half of a section of land owned by defendant Semmler. The trial court found that the northwest quarter of the section was Semmler’s homestead; that the materials furnished for which the lien was claimed were all placed upon the homestead quarter; that its value was only $5,000, and therefore wholly exempt; that no part of the lien attached to the northeast quarter of the section; that the whole premises were mortgaged to the extent of $5,900; and that Snyder’s deed, executed and delivered within 90 days after the last item of material was furnished but before the lien -was filed, was in reality a mortgage in trust for a bank as collateral security. Judgment was entered denying plaintiff’s lien upon any of the land. Plaintiff appeals from the judgment and order denying new trial.
Appellant contends that the court erred in finding the *543value of the homestead to be only $5,000, and claims that the preponderance of the evidence showed a value in excess thereof. The lien transaction arose when section 1644, Rev. Code 1919, read, “It shall not extend to nor affect an)’ rights in any homestead,” and before that language was changed by chapter .280, Laws 1921, to read, “It shall not extend to nor affect any rights in any homestead, so far as the samie is exempt from levy and sale on execution.” It is therefore immaterial what the value of the homestead was. Robt. Burns Lbr. Co. v. Peterson, 48 S. D. 92, 202 N. W. 387.
The next contention is that the court erred in excluding the northeast quarter of the section from the operation of the lien. It is urged that, inasmuch as the whole half section was used as one farm, the lien attached to the whole pursuant to the language’ of section 1643, Rev. Code 1919, which provides: “Shall have a lien upon said improvement and upon the land on which it is situated.”
We find no precedents from Minnesota, from which state we adopted our mechanic’s lien law in 1913 (Laws 1913, c. 263), because there no homestead right exists as against a mechanic’s lien ,and the amount of land covered by the lien is regulated by statute. The general rule seems to be that the lien extends to the building and so much of the land upon which it is situated as is necessary to its convenient use and occupation., 27 Cyc. 221. Under that rule, and especially in view of the decision in Floete Lbr. Co. v. Hodges, 32 S. D. 557, 143 N. W. 949, under the lien law as it existed prior to 1913, we cannot say that the trial court erred in excluding the northeast quarter of the section from the operation of the lien.
The judgment and order appealed from are affirmed.