1. Before considering the merits of the case it is proper to remark that although the railroad company holds the patent of the United States for the land in controversy, the defendant, according to the laws of the state, was entitled to judgment, if it appeared that he was equitably entitled to possession as against the plaintiff. Hill's Anno. Codes & Statutes, 530 et seq.; Burmeister v. Howard, 1 Wash. Terr. 208.

2. We have seen that the Northern Pacific Railroad Company was created by the act of Congress of July 2d, 1864, chap. 217, making a grant of lands in aid of the construction of the road from Lake Superior to Puget sound. When that grant was made substantially the entire country between those points was untraveled as well as unihabited except by Indians, very few of whom, at that time, were friendly to the United States. The principal object of the grant, as will appear from its language, was to secure the safe and speedy transportation of the mails, troops, munitions of war, and public stores, by means of a railroad and telegraph, and to that end, and in order to bring the public lands into market, it was deemed important to encourage the settlement of the country along the proposed route. The public lands in that vast region were unsurveyed, and it was not known when they would be surveyed. Congress, of course, knew that if immigrants accepted the invitation of the government to establish homes upon the unsurveyed public lands, they would do so in the belief that the lands would be surveyed, that their occupancy would be respected, and that they would be given an opportunity to perfect their titles in accordance with the homestead laws.

Nelson v. Northern Pacific Railway Company/Opinion of the Court

Such was the situation when the act of July 2d, 1864, was passed. Necessarily the act must be interpreted in the light of that situation. It should not be so interpreted as to justify the charge that the government laid a trap for honest immigrants who risked the dangers of a wild, unexplored country, in order that they might establish homes for themselves and their families. And it should not be supposed that Congress had in view only the interests of the company, which, with the aid of a munificent grant of lands, was empowered to connect Lake Superior and Puget sound with a railroad and telegraph line.

Nelson v. Northern Pacific Railway Company/Opinion of the Court

Let us now see what is the fair import of the act of 1864, under which both parties claim possession.

Nelson v. Northern Pacific Railway Company/Opinion of the Court

By the 3d section of that act, it was, among other things, provided as follows, to wit: 'That there be, and hereby is, granted to the 'Northern Pacific Railroad Company,' its successors and assigns, for the purpose of aiding in the construction of said railroad and telegraph line to the Pacific coast, and to secure the safe and speedy transportation of the mails, troops, munitions of war, and public stores over the route of said line of railway, every alternate section of public land, not mineral, designated by odd numbers, to the amount of twenty alternate sections per mile, on each side of said railroad line, as said company may adopt, through the territories of the United States, and ten alternate sections of land per mile on each side of said railroad whenever it passes through any state, and whenever on the line thereof the United States have full title, not reserved, sold, granted, or otherwise appropriated, and free from pre-emption or other claims or rights at the time the line of said road is definitely fixed, and a plat thereof filed in the office of the Commissioner of the General Land Office; and whenever, prior to said time [of definite location], any of said sections or parts of sections shall have been granted, sold, reserved, occupied by homestead settlers, or pre-empted, or otherwise disposed of, other lands shall be selected by said company in licu thereof, under the direction of the Secretary of the Interior, in alternate sections, and designated by odd numbers, not more than 10 miles beyond the limits of said alternate sections. . . .'

By the 6th section of the act it was, among other things, provided as follows: