This is an action to prevent alleged encroachments on D street in the city of Lewiston. The appellant as plaintiff brought this action against the respondents, alleging that they were encroaching upon said D street, and charging them with having taken for their private use approximately four feet off the south side of said street and of extending their buildings over and upon said four feet of land wrongfully.
The nature of this action is a suit in equity to abate a nuisance alleged to be a public nuisance, damaging to the public as well as to the plaintiff’s private rights, and praying that the same be abated and removed, and that an injunction be issued restraining and prohibiting defendants and each of them from encroaching upon said street and for a mandatory injunction against the defendants, and to restore said street to its width as claimed to have been established by the official survey of E. B. True, to wit, eighty feet.
. The defendants deny any encroachment upon said street, and allege affirmatively the incorporation of the city of Lewiston, surveying and platting of the city long prior to the said True survey; that according to said original plat and survey, the lots in question were fifty feet in length north and south, except where they widened at the bend in E street (said E street is also called Main street and Montgomery street); that about the year 1874, and long after the *423rights of the defendants and their predecessors were vested to the premises in controversy, the townsite of Lewiston was entered by the mayor, Henry W. Stainton, under the federal townsite act; that the defendants and their predecessors in interest were, long prior to 1874, in the actual occupancy, the use and enjoyment of the premises in controversy, which they were enjoying at the time of the commencement of this suit, on which premises they are now attempting to erect the three-story brick buildings referred to in the complaint; that a patent was issued by the United States to the mayor as trustee, and thereafter the official survey was made; that said survey was ordered under the federal and territorial laws; that the declaratory statement therefor was No. 39, and was made in the United States Land Office at Lewiston, November 21, 1871, by Levi Ankeny in trust for the inhabitants of the city of Lewiston, claiming settlement in 1861; that cash entry was made June 6, 1874, therefor by said Henry W. Stainton in trust; that said True was employed to make the survey and was commanded as follows: “To so adjust the said plat as to conform to the .condition of the improvements of and occupation of the lands affected thereby, and the mayor-trustee was authorized, empowered and required to make and deliver to the bona fide occupants of such land described in the patent, good and sufficient deeds in fee simple, according to their respective interests, and for that purpose was authorized to carry the act into effect”; that in making said survey, more especially the survey of the south line of said D street, the said True did not pay regard to or attention to the several use and uses of the land as the same was then occupied by the inhabitants of the city of Lewiston, and more especially did not pay any attention to the quantity of land then used and occupied by the defendants and their predecessors in interest, and that said True did not conform said D street as it was known and used prior to said survey, nor did he pay due or any regard to the actual use, occupancy and improvements of the said lots; that the south line of said D street, as surveyed and delineated by said True, cut several feet off the north end of *424the lots of the various inhabitants of Lewiston, which lots had a frontage on D street, and so cut off the lots in controversy owned by these defendants and their predecessors; that said street as surveyed by said True- crossed and interfered with buildings then standing on the same, and attempted to devest certain vested rights; that said True did not conform D street to the use of lands nor did he make D street, as marked on his map or plat, conform to or coincide with the actual south line thereof as the same had been and then was used and treated as a public street; that thereafter and after the approval of the said True survey, such steps were taken that in many instances- the plat and survey were corrected and changed, and that notwithstanding the erroneous work of said True, the various citizens still continued in the actual use and occupancy of their said lands, and the predecessors of defendants did the same as to the lots involved in this case and which are owned and possessed by them, and that such claim was by occupancy, buildings and improvements, continued from the first occupancy, thence hitherto, and that the land involved, being ■ about four feet on the north end of said lots, never at any time, nor at all, was used or occupied as a street, but was used and occupied by defendants and their predecessors; that after True had made his plat, it was amended, and the defendants aver that the correct south line thereof is now and was by such amendment shown in red ink, and that the red ink line conformed to the true south line and ,to the several uses and occupancy of the lands involved; that respondent Moxley owned lot 3 in said block 24, having an area of 1250 square feet, both prior to and after said True survey, but that said True gave it only 1173 square feet; that lot 2 in said block as shown by said True survey contained but 1131 square feet, whereas long prior to the said survey and at the time thereof and since, the said lot has in truth and in fact contained 1250 square feet; that the difference between 1250 square feet and 1131 square feet is the strip of approximately four feet wide by twenty-five feet in length which appellant seeks to enjoin the respondent Squier from *425holding; that snch lot as claimed by the said Squier has been actually covered by a building for more than thirty-five years last past, and was so occupied by said building long prior to the survey of True; that respondent Moxley obtained title to lot 3, said block, by direct deed from Henry D. Stainton, mayor-trustee, and that the plat of the True survey and the size of this lot as stated by him were amended prior to the recordation of said plat and that True’s survey gave said lot only 1136 square feet, but the same with an amendment was deeded to said Moxley by said mayor-trustee, and the strip involved herein is the amendment which said mayor deeded to Moxley.
The answer then alleges the .rights of respondent Fix, and avers that his right through predecessors antedates said True survey, and that the land claimed by him in addition to that specified in True’s survey never was a street or highway, but that said strip was long prior to said survey in the actual, visible, exclusive and notorious possession of said defendant and his predecessors in interest and never constituted a part of D street; that that state of facts existed at the time said True made his survey, and that the appellant when erecting his building did not cover the ground theretofore occupied by his old building, nor by the predecessors in interest of said Scully; that the Grostein building situated on the lot immediately west of the Scully lot was erected seventeen years ago, and that said building extends far out beyond Scully’s building and was built bordering on the south line of D street then given to said Grostein by city officers; that said Scully placed his building entirely off of and away from the south line of said D street as it then existed; that the field-notes and • plat of block 24 as made by said True did not correspond, and that the same are incorrect, which errors interfered with vested property rights.
The answer then alleges that said respondents are attempting to use only the same ground that they and their predecessors have always used; that the premises of each of the respondents extends to the south line of D street as actually used.
*426From the foregoing statement, the real issue in the case is very clearly presented. The appellant claims that the defendants have encroached upon and erected their buildings about four feet out on and into said street, while the respondents contend that they have not done so, but that their buildings only extend northward to the line which has been occupied and on which buildings have been erected for more than thirty years. The entire controversy arises over the correctness of the said True survey and his field-notes thereof.
After the trial of the case, the court made quite elaborate findings of fact, and deduced therefrom conclusions of law to the effect that the ease made on behalf of the appellant was devoid of equity and that he was without any standing in a court of equity; that he has no such interest as would permit him to maintain this action, and that the defendants were entitled to judgment and decree in their favor, and judgment was entered accordingly, dismissing the action. This appeal is from the judgment and the order denying a new trial.
In deciding this ease, it becomes necessary to recur to a few of the historical facts connected with the location and settlement of the city of Lewiston. It was first settled in the year 1861, upon what was then a part of the Nez Perce Eeservation. At that time the territory now included in the state of Idaho was a part of the territories of Washington, Nebraska, Dakota and Utah. (See People v. Williams, 1 Idaho, 85.) Nez Perce county, in which the city of Lewis-ton is located, was organized under an act of the legislature of Washington territory on December 20, 1861. The territory of Idaho was organized under an act of Congress approved March 3, 1863, and its first territorial legislature convened on the 7th of December, 1863, and adjourned on the fourth day of February, 1864, which session was held at the city of Lewiston. At that session of the legislature, by an act approved February 4, 1864, the boundaries of Nez Perce county were changed and that county reorganized. (1 Sess. Laws, p. 628). Lewiston at that time was a *427distributing point for the various mining camps to the northeast, east and southeast. The city of Lewiston was incorporated under the laws of Washington territory by an act approved January 15, 1863, and was reineorporated by an act of the legislature of Idaho in 1866. (Sess. Laws 1866, Fourth Session, p. 87.)
The first section of that act defines the boundaries of said city, and recites that the territory incorporated “constitute in square form, as near as practicable, according to government survey, one square mile, intended to include the square mile of land stipulated for in favor of said town in the treaty between the United States and the Nez Perce tribe of Indians now pending, is hereby organized into a municipal corporation under the name of ‘The City of Lewiston.’ ” It would appear from this that a treaty was then pending between the United States and the Nez Perce tribe of Indians for the tract of land on which the city of Lewiston stood, to the extent of one square mile.
Levi Ankeny was mayor of the city of Lewiston in 1871, and on November 21st of that year filed his declaratory statement No. 39 in the United States Land Office at Lewiston, proposing to enter the lands included within the borders of said incorporation, in trust for the inhabitants of the city of' Lewiston, claiming settlement, in 1861. Cash entry was made for said lands on June 6,1874, by Henry W. Stainton, Mayor, in trust for the inhabitants of said city.
This entry was made under the provisions of section 2387 of the Revised Statutes of the United States, which section is as follows:
“(Entry of town authorities in. trust for occupants.) Whenever any portion of the public lands have been or may be settled upon and occupied as a townsite, not subject to entry under the agricultural pre-emption laws, it is lawful, in case such town be incorporated, for the corporate authorities thereof, and, if not incorporated, for the judge of the county court for the county in which such town is situated, to enter at the proper land office, and at the minimum price, the land so settled and occupied in trust for the several use *428and benefit of the occupants thereof, according to their respective interests; the execution of which trust, as to the disposal of the lots in such town, and the proceeds of the sales thereof, to be conducted under such regulations as may be prescribed by the legislative authority of the State or Territory in which the same may be situated. ’ ’
The trust provided for by this section is dual in its nature. It exists for the benefit of the occupants as individuals, and also collectively as a community. The title to occupants of lots vested in the mayor-trustee for their benefit severally when the entry was made. The title to lots to which no valid claims are held by individuals is taken in trust by the trustee for the occupants of the townsite collectively. (See notes to said section 2387, 6 Fed. Stat. Ann., p. 343.) Under the provisions of said section, the execution of the trust created, as to the disposal of the lots in such town, must be conducted under such regulations as may be prescribed by the legislature of the state wherein such town is located.
The legislature of the territory by an act approved January 8, 1873 (7 Sess. Laws, p. 16), provided for the survey, platting and disposal of the land in the city of Lewiston pursuant to the United States statutes in regard to such matters. Said act provides that the mayor-trustee shall cause to be made and filed in his office by a competent person a plat of the land within said city, divided into blocks and lots, and “to make and deliver to the bona fide occupants of such portions of said land described in said patent from the government of the United States who may be entitled thereto, good and sufficient deeds of conveyance in fee simple according to their respective rights.”
Under the provisions of said laws, one E. B. True was employed to survey and plat the lands in said town, and was commanded to adjust said plat so as to conform to the conditions of the improvements and the use and occupation of such lands by the settler, and the mayor was required to make and deliver to the bona fide occupants of such lands good and sufficient deeds of conveyance in fee simple according to their respective interests, under the provisions of said law.
*429It appears from the evidence in the case that said True made a plat of said town including block 24, in which block are the lots involved in this case, so as to make the lots about forty-six feet long, north and south, when, as a matter of fact, most, if not all, of the lots in that block were fifty feet long, north and south, as indicated by the buildings and other improvements thereon. The question is fairly presented as to whether said True had any authority whatever to make said plat so as to interfere with and cut off a part of the buildings and improvements of the occupants of such lots. In other words whether under the law a surveyor, who is employed to plat such a townsite after its entry by the proper officer, can widen a street, and in doing so cut off „ a portion of the buildings and improvements of the lot owners bordering on such street.
It must be kept in mind that Lewiston existed prior to the True survey. The settlers did not acquire their right under the plat nor by virtue of it. The survey and plat was made for them; they were not made for the survey and plat.
In Parcher v. Ashby, 5 Mont. 68, 1 Pac. 204, a Montana case, the court had under consideration a controversy over a strip of land sixteen feet wide on Rodney street in the town of Helena. That townsite was entered by the probate judge, and the court there held that the survey must conform as near as may be to the existing rights and interests of the occupants, and that no valid and subsisting easements could be destroyed by the survey and the acceptance of the plat by the county commissioners. The court in referring to the requirements prescribed by the legislature of Montana, said:
“These regulations could not enlarge or diminish the rights or interests of occupants of the lots. And so our legislature provided that the survey and plat of the townsite should conform, as near as might be, to the existing rights, interests, and claims of the occupants thereof. The lots were to be surveyed and the streets and alleys as they existed prior to entry were to be respected and recognized. For in no other manner could the occupants obtain title to their lots *430according to their several rights and interests. The plat and survey of the probate judge must conform to the old survey by which the occupants had held and occupied their lots prior to the entry of the townsite; otherwise his plat and survey is so far void.....The rights of occupants accrued before the entry of the townsite by the probate judge, and the mere fact that his plat and survey failed to designate a street or alley as it existed before his entry and survey does not thereby destroy such street or alley and change the ground occupied by the same into a lot that can be sold. And so, for the same reason, if this plat and survey had designated ground theretofore occupied as a lot, as an alley or street, said designation would not in any manner affect the right of the occupant to his lot.”
It is there held that the plat and survey could not in any manner affect the right of the occupant to his lot. The rights of the occupant had attached prior to True’s survey, and the entry of the townsite was made in trust for the occupants who were in possession of particular tracts of land as well as for the community in general. The surveyor could not devest them of their rights. The survey was for their benefit and should have confirmed those rights.
In Ashby v. Hall, 119 17. S. 526, 30 L. ed. 469, 7 Sup. Ct. Rep. 308, the supreme court of the United States held that the interests which the occupants possessed previous to the entry, either in the land occupied by them or in rights of way over adjoining streets and alleys, were secured by it. The court said: “The power vested in the legislature of the territory .... was confined to regulations for the disposal of the lots and proceeds of the sales. These regulations might extend to provisions for the ascertainment of the nature and extent of the occupancy of different claimants of lots, and the execution and delivery to those found to be occupants in good faith of some official recognition of title in the nature of a conveyance. But they could not authorize any diminution of the rights of the occupants when the extent of their occupancy was established.” Upon this point, see, also, Bingham v. Walla Walla, 3 Wash. Ter. 68, 13 Pac. 408.
*431In Goldberg v. Kidd, 5 S. Dak. 169, 58 N. W. 574, in commenting upon the word ‘ ‘ disposal ” as used in section 2387, Revised Statutes of the United States, the court said: “As to the lots actually occupied when the entry was made, we think the word ‘disposal’ must be construed to mean ‘distribution,’ which words are often used synonymously, for, as to such lots, they were already disposed of, that is, they became at once the property equitably of the occupants.”
In Stringfellow v. Cain, 99 U. S. 610, 25 L. ed. 421, the court said: “The occupant of a lot at the time the entry of a townsite is made is its real owner.”
In the case of City of Pueblo v. Budd, 19 Colo. 579, 36 Pac. 599, it is said: “The entry of the townsite, therefore, being ‘in trust for the several use and benefit of the occupants thereof, according to their respective interests,’ each of such occupants at the time of the entry became, to the extent of their respective holdings, beneficiaries of the trust, and were vested with equitable ownership of the lot or parcel of land to the extent of their occupancy.”
E. B. True had no authority to attempt to take private property for street purposes, nor did the fact that he ran his survey where he did deprive any of the owners of their property rights which were then vested. (City of Helena v. Albertose, 8 Mont. 499, 20 Pac. 817; Tredway v. Wilder, 8 Neb. 91; Bingham, v. Walla Walla, 3 Wash. Ter. 68, 13 Pac. 408; Parcher v. Ashby, 5 Mont. 68, 1 Pac. 204; Hall v. Ashby, 2 Mont. 489; Alemany v. City of Petaluma, 38 Cal. 553; Town of Aspen v. Rucker, 10 Colo. 184, 15 Pac. 791; Denver v. Kent, 1 Colo. 336.)
It would appear from the provisions of said section 2387 of the Revised Statutes of the United States, that such land is permitted to be entered by the proper authority for the use and benefit of the occupants thereof according to their respective interests. As above stated, such trusts exist for the benefit of the inhabitants, first as individuals, and after that, collectively as a community. And the title to occupied lots becomes vested in the trustee for the benefit of the occupants severally at the time such entry is made. If the *432surveyor who is employed to plat the town has the authority to cut off four feet from the lots on a certain block, he certainly has the authority to cut off more, and where is the line to be drawn? Can the surveyor make a paper street in such a town and deprive the actual occupants of vested rights? We think not. The occupants possessed certain rights in and to the lots occupied by them before the entry, and the only authority the surveyor had was to plat the town in conformity to the use and occupancy of the lots and blocks. The plat must be made for the benefit and use of the occupants. The surveyor’s power was limited; he had no authority to establish streets through and over buildings nor to cut off any portions or parts of buildings for that purpose. If that were not true, it would have been better for the occupants not to have had the entry made, for they had the right to occupy their lots as they were then occupying them. If the entry was not made in their interests, their rights were not as well established after the entry as before. The object and purpose of the statutes was to benefit the occupants and not to destroy their rights. In this case the occupants had property rights in the premises occupied by.them, and the surveyor had no authority to take private property for street purposes or to establish any portion of a street on private property. The occupant’s right and ownership did not come by virtue of the plat and survey; it came by reason of his possession and occupancy and the improvements that he had placed upon his lot.
As before stated, the trust of the mayor was dual in its nature. The occupants of the lots, each as individuals, were entitled to deeds to their lots as occupied by them. The community of the city as a whole was entitled to the unoccupied lots and the public in general were entitled to the streets. The individual had no right' under the law to encroach upon the streets, and the city had no right to appropriate a portion of the lots of the occupants for a street. The mayor and the surveyor had no authority to change the beneficiaries under this trust.
There is no dispute in the evidence but that the defendants *433and their predecessors in interest claimed and occupied the lots in question to their full length. Buildings and other improvements had entirely covered the said lots. The owners occupied and possessed said lots fifty feet in length. It is not claimed or shown that any part of said lots were ever used as a street, or any part thereof, nor that the city ever claimed any part thereof as a portion of the street, and the city surveyor cannot make any portion of said lots a street by simply making a plat and indicating on such plat that said lots were only forty-five or forty-six feet in length. The mayor-trustee had no judicial power in this matter— neither had the surveyor. The surveyor and mayor cannot dedicate to the public as a street parts of lots occupied and possessed by individuals.
The appellant rests his case here on the making and approval of said plat. If private rights can be taken in that way, it is a novel proceeding and a proposition unknown to our law. The record clearly shows that the mayor recognized the incorrectness of the plat, as he executed deeds showing that fact long prior to the time that said plat was filed. 'While the plat was made and approved in 1875, it was not recorded until 1879. The city of Lewiston is not here complaining of the 'erection of buildings on the lots referred to in her streets. The record clearly shows that the city has for forty-five years known that the occupants of the lots on said block 24 were claiming that such lots were fifty feet in length, and that they had buildings and other improvements covering said lots.
It is contended by counsel for appellant that none of the respondents can question the boundaries of D street without establishing a legal or equitable title owned by him at the time of the encroachment with the buildings upon the boundaries of such street, and that no equitable title vests in an occupant, other than at the time of the day of filing the application in the land office of the United States.
We think it sufficiently appears from the evidence that the lots in question were occupied, claimed and possessed ever since long before the application was made to enter said *434land, either by the present owners or their predecessors in interest, and as heretofore stated, it also appears that they claimed their said lots to be fifty feet in length, and that they or their predecessors have had improvements of some kind covering’ said entire fifty feet. That being true, the counsel’s contention is fully met by the proof in the ease.
(June 18, 1907.)Taking the whole record, it sufficiently appears that that portion of D street in controversy has never been possessed and occupied and used as a street, although the other parts of the street have been used since 1861, about forty-six years. We have no doubt but what appellant, regardless of the suggestions of the city engineer, has the right to extend his building out even with the other buildings placed along said street, and that the city has no right to the use of said four feet, or thereabouts, for a part of D street.
The judgment of the court below must be affirmed, with costs in favor of the respondents.
Ailshie, C. J., concurs.