Two cases are before’us by consolidation; one an original proceeding in mandamus, the other an appeal from the circuit court of Hughes county. We first consider the mandamus proceeding.
By chapter 333, Laws 1917, acting under an amendment to Constitution, art. 13, § 1, adopted by the people at the November, 1916, election, the state embarked in the business of making farm loans. That chapter as amended by chapter 334 of the same session, and as amended at the -Special Legislative Session of 1918 (chapter 58), appears in the Revised Code of 19119 as sections 10150 to 10173. Chapter 304, Laws 1919, is the only amendatory act since the Code. The writ of mandamus was sought by the county of Hughes and Harrold independent consolidated school district, a school district of said county, against the members of the South Dakota Rural -Credit Board, hereinafter called “the board,” to compel the redemption from tax sale of certain premises within said county and school district upon which there is a “rural credit” loan. The facts alleged in the application for the writ, briefly stated, are as follows: A rural credit loan of $10,000 was made on a section of land within said school district on July 1, 1922. The 1922 taxes which became due January 1, 1923, were unpaid, and at the county tax sale on December 10, 1923, the premises were struck off to Hughes county for want of bidders, and a tax sale certificate was issued to Hughes county. Rev. Code 1919, § 6794. The tax represents, among others, a levy for state purposes of 1.9 mills and a school tax of 13.3 mills. The state levy includes a tax for the maintenance of the state government and its public institutions and for the payment of the interest on, and the establishment of a sinking fund to retire, state bonds aggregating $14,900,000; consisting of highway bonds, $6,000,000; soldiers’ compensation bonds, $6,000',000; cement plant -bonds, $2,000,000; and land settlement bonds, $900,000. In addition to the maintenance of the school the school tax is in part for the purpose of paying the interest on, and the establishment of a sinking fund to retire, school district bonds issued upon a loan to *102the school district of a portion of the permanent school fund of the state. In addition thereto the total tax levy includes a sum to provide for the payment of the premium for hail insurance under the state Hail Insurance Law (chapter 244, Laws 1919, and amendments). It is also- alleged that none of the 1923 taxes have been, paid, and that there was no purchaser therefor at the tax sale for the taxes of that year. It is common knowledge that many of the counties of the state are seriously crippled by the nonpayment of taxes on lands upon which there are rural credit mortgages. The state’s attorneys of 18 counties other than plaintiff are joined as “of counsel” for plaintiff in this case. It is stated in plaintiff’s brief, although not alleged as a fact in the application for the writ, that the unpaid taxes on lands covered by rural credit mortgages exclusive of the taxes of 1924 in Perkins county alone amount to more than $82,000.
The defendants demurred to the application for the writ, and moved to quash the alternative writ because: (1) No duty rested upon the board to pay the taxes, consequently mandamus will not lie; (2) it is not shown that there is- not an adequate remedy at law; (¡3) it is not shown that the board has or can obtain funds to pay the taxes; (4) if the board has means or authority to pay the taxes, the exercise of such power is discretionary; (5) the lien for taxes is inferior to- the lien of the rural credit mortgage by reason of the provisions of sections 6758 and 6804, Rev. Codef 1919; and (6) the board is without power to pay taxes except such as may be superior to> the lien of such mortgage.
The contentions of plaintiff are: (1) That in the absence of legislation to-the contrary taxes should be held to be superior liens. (2} That the provisions of section 6804, Rev. Code 1919, are not applicable to rural credit mortgages because: (a) At the time of its adoption the use of the credit of the state for the making of farm loans was not conceivable; (b) the application of that section to rural credit mortgages would be inimical to the public interest; (c) the rural credit act does not establish the lien of the mortgage to be superior ft>the lien of taxes; (d) the provisions of said section relate to liens created in favor of the state in its sovereign capacity only and not in its private or business capacity; and (e) that there is no provision whereby the county can take a tax deed on property mortgaged to the state. (3) That the provisions of *103said section 6804 relate to tax deed's taken by private individuals only. (4) That the tax lien is superior to the mortgage lien. '(5) That permission to pay taxes amounts to a duty under the circumstances of this case.
The text of the rural credit act does not, in terms, enjoin upon the board the duty of paying taxes in case the mortgagor does not. In terms the authorization is merely permissive. It is as follows:
“Every borrower * * * by express covenant in his mortgage deed shall pay, when due, all taxes, liens, judgments, assessments and insurance which may be lawfully assessed against the mortgaged land. Taxes, liens, judgments, assessments or insurance, not paid when due and paid by the mortgagee, shall become a part of the mortgage debt.” Subdivision 9, § 10159, Rev. Code 1919, as amended by chapter 304, Laws 1919, § 3. .
There is nothing in the act that intimates that the lien of general taxes shall be superior to the lien of the rural credit mortgage, nor that the lien of general taxes shall be inferior to the lien of the rural credit mortgage. It does appear, however, that a loan may be made on lands subject to liens or assessments for drainage, reclamation, or irrigation payable in installments where the installments are not then due. Subdivision 3, § 10159, Rev. Code 1919, as amended by chapter 304, Laws 1919, § 3. The plain inference therefrom is that the mortgage lien in such case is subject to the lien of the assessment, but that for the purpose of definition of what is a first mortgage such a mortgage shall be deemed' a first mortgage. Attention is called to this merely to show that no legislative intent is disclosed in the act to make the lien of the mortgage superior to all other liens.
It is urged by plaintiffs that permission to pay taxes, liens, judgments, assessments and insurance makes the duty imperative.The rule is thus stated in 25 R. C. L. 767:
“Although the words of a statute are merely permissive, directory or enabling, they may nevertheless have the force of words of command where the power or duty to- which they relate is for the advancement of public justice or the security and protection of public or private rights.”
While we might be inclined to assent to that doctrine except as to items that are clearly subordinate to the lien of the miort*104gage or in which the interest of the public is not involved, yet we think it unnecessary in the present case to decide that the lien of the taxes is superior to -the lien of the mortgage. We think the duty of the board to pay taxes, permission being given, may safely rest upon the broad ground of the right of- self-preservation of the state and of its governmental subdivisions, the county, township, and school district. Without the collection of revenue neither the state nor its governmental subdivisions can function. If the police power of the state is such and its power of eminent domain is such that the state cannot divest itself of them (Contributors to Penn. Hospital v. City of Philadelphia, 245 U. S. 20, 38 S. Ct. 35, 62 L. ed. 124; State of Georgia v. City of Chattanooga, 264 U. S. 472, 44 S. Ct. 369, 68 L. ed. 796; Sanitary District of Chicago v. United States, 45 S. Ct. 176, 69 L. ed. 352), then certainly the state ought to' be powerless to divest itself of its right of self-preservation. If the lien of the taxes is superior to the lien of the mortgage, there is a clear duty on the part of the board to pay the taxes when they become delinquent. If the liens of the taxes and of the rural credit mortgage are co-ordinate and of equal rank, then the duty of the board to pay the taxes is none the less clear, for it would not be seemly for one arm of the state to take a position, unless clearly authorized so to do, that would tend to embarrass the functioning of the state government. It is only in case the Legislature has clearly designated the lien of the mortgage to be superior to the lien of taxes that the board could be said to be absolved from the duty of paying delinquent taxes on the lands covered by its mortgage loans. As above intimated, it may be seriously questioned whether the Legislature could lawfully make the lien of taxes subordinate. It certainly ought not to do- so to an extent that would prevent the collection of that portion of the school fund loaned to Harrold school district, and it is clear that the board ought not to take a position that would impair the permanent school fund, for by the Constitution “the principal shall forever remain inviolate, and may be increased, but shall never be diminished, and the state shall make good all losses thereof which may in any manner occur.” Const., art 8, § 2.
But it is urged that sections 6758 and 6804, Rev. Code 1919, make the lien of taxes subordinate to the lien of rural credit mortgages. . Section 6758 says:
*105“Taxes upon real property shall be a perpetual lien thereon against all persons and bodies corporate, except the United States and this state.”
That clause makes the lien of taxes on real estate superior to other liens except as against the United States and this state. Miller v. Anderson, 1 S. D. 539, 543, 57 N. W. 957, 11 L. R. A. 317. But that language does not make the tax lien subordinate to the state’s mortgage lien. It merely provides that the tax lien is not superior to the mortgage lien.
Nor does section 6804 attempt to place the lien of the real estate tax subordinate in rank to the lien of the rural credit mortgage. That section provides for the giving of notice of the expiration of the time of redemption from tax sale and for the execution of the tax deed, and further provides:
“Such deed shall vest in the grantee an absolute estate in fee simple in such real property, subject, however, to all claims which the state may have therein for taxes, liens or incumbrances.”
That sentence appeared in our laws in territorial times. It existed before a notice of the expiration of the time of redemption from- tax sale was required tO' be given (chapter 151, Laws 1890), and also before the county treasurer was authorized to strike off land at tax sale to the county for want of other bidders (chapter 131, Laws 1885), and it was not until the enactment of chapter 291, Laws 1915, that notice of the expiration of time of redemption from tax sale was required to be given to mortgagees. Even then and since then there has been no provision made for the service of such notice upon 'the state because no person or officer has' been designated upon whom service may be made. There being no possibility of the county or any other tax certificate holder acquiring a tax deed on real property on which the state holds a mortgage, said section 6804 has no application to such a state of facts. But,, even if there were no requirement for the service of notice of expiration of the time of redemption from tax sale upon mortgagees, the result would still be the same. The quoted clause of said section 6804 up to the time that a county could take a tax deed clearly contemplated that the applicant for tax deed was a private person or corporation, and therefore of necessity contemplated that all taxes evidenced by the tax sale certificate had been paid. In other words, the state, county, *106township, school district, and other taxing districts had received their portion of the taxes, and there was not then a question of a tax due the state or any of its governmental subdivisions on the one hand and the state as mortgagee or other lien holder on the other hand. We do not think that the fact that the county may now take a tax deed on certificates held by it for want of other bidders at tax sale, even if provision were made for service of notice on the state, tends to make the tax lien subordinate to the lien of the state’s mortgage. True, the fee-simple estate supposed to be represented by the tax deed is subject to the state’s mortgage, but, when the county takes over the premises at tax sale for want of other bidders, and when it gives notice of the expiration of the time of redemption, and when it takes a tax deed, it is still acting as an arm' of the state in the collection of taxes because it pays out no portion of the taxes represented by the tax sale certificate until it has obtained the tax deed and has sold and conveyed the property. Rev. Code 1919, § 6803. Then, and not until then, is the tax lien abated. Then, and not until then, do the state and its subordinate taxing districts receive their share of the taxes. Then, and not until then, does the above-quoted portion of said section 6804 come into operation. We are therefore satisfied that the Legislature has not attempted to make the lien of taxes subordinate to the lien oí rural credit mortgages.
The question as to whether by its rural credit operations the state is engaged in its private or business capacity as distinguished from its sovereign or governmental capacity, is a serious one, but the disposition we have made of’the case renders unnecessary the consideration of that question.
The assertion by the board that it is not alleged that it has funds available to pay taxes is not worthy of serious consideration. The payment of taxes is an incident h> the making of a loan. The 'board has the power to pay taxes from any funds it can use in the making of loans.
There is another feature of the case to which attention should be called. By section 10163, Rev. Code 1919, the Attorney General is made the legal adviser of the board. On December 26, 1922 (A. G. Op. ’24, p. 336), Attorney General Payne advised the board that because of said section 6804 the lien of rural credit mortgages was superior to taxes, but he also said:
*107“It is the intent of the law that the rural credit board shall-pay delinquent taxes upon lands upon which they hold mortgages. If rural credit borrowers fail to pay "taxes, and the same are not paid by the rural credit board, it will result in the withdrawal of a large amount of property from contributing to the common burden of taxation. There will be no purchasers of such taxes, for the reason that, if the state secures title under a foreclosure of its mortgage, the holder of a tax certificate would be deprived of his lien and the taxes would be canceled by title vesting in the state.”
We think the rural credit board should have followed the advice of the Attorney General and not have permitted the present unfortunate condition of public affairs to have arisen.
All of the grounds of the demurrer and' of the motion to quash are deemed to be without merit. Our conclusion is that the alternative writ should be made peremptory. A stipulation having been filed that defendants waive the right to answer, the writ will be made peremptory, but before it is signed and filed it is expected that the parties will agree upon a date on or before which the board will obey the peremptory writ. In default of such agreement application may be made to the court to fix such period.
Upon the appeal which was consolidated with the mandamus proceeding we need only say that the judgment of the trial court based upon a conclusion of law that the lien of the rural credit mortgage was superior to the lien of the taxes should be reversed. Inasmuch as the mandamus preceding will dispose of that case, it will be remanded, with directions to dismiss without costs to either party.
In this court costs will be taxed for plaintiffs and appellants.
ANDERSON, J., not sitting.