This is 'an action upon a written contract, entered into on March 14, 1882, by and between the Cape Girardeau Southwestern Railway Company, of the first part, and the county of Wayne of the second part, the county at the time acting through the county court. The contract, leaving off the formal parts, reads as' follows: “Whereas, the Cape Girardeau Southwestern Railway has this day bought all the remaining and unsold swamp and overflowed lands belonging to Wayne county, state of Missouri, for the price and sum of $1.25 per acre, the total amount of acres of yet unsold land being in the aggregate, as near as can be ascertained, nine thousand, five hundred acres, and the aggregate price therefor $11,875; and whereas, the said county of Wayne has caused a patent or deed to be made and executed to said Cape Girardeau Southwestern Railway Company for said swamp and overflowed land, but which said patent or deed has been placed in the hands of James E. Hatton as an escrow, and is to be delivered to said railway company when it shall have paid for said land as is in this contract hereafter fully and particularly set out.
“And, whereas said railway proposes to do certain work, to drain, reclaim and protect said land from the overflows of the St. Francois and Castor rivers, for the price and sum of $11,875, and which is a low charge for said work; and whereas, said proposed work will open up to settlement and cultivation a large portion of the southern part of this county, now practically of no value, and also promote the health of the county by a drainage.of said lands; now, therefore, in consideration of said premises, and other valuable considerations, this contract entered into between the said county of Wayne, by order of its county court, duly *354entered of record, at the February special terna, or adjourned term, and the Cape Grirardeau Southwestern Railway Company.
‘‘Witnesseth, that the said county of Wayne agrees to pay said railway company the sum of $11,875, said sum being the price of nine thousand, five hundred acres of swamp land sold to said railway company at $1.25 an acre, and a deed or patent to which said lands has been made and executed by said county of Wayne this day, and delivered to James F. Hatton, as an escrow, and to be by him delivered to said railway company when said railway company shall have fully performed and done the work hereinafter to be specified, and which said deed, or patent, shall be in full and complete payment for and on account of said work, without any other or further demand of payment for or in that behalf; and said railway company expressly covenants that it will not make any reclamation against said county for any defect or imperfection of title hereby conveyed or any part thereof. And said Cape Grirardeau Southwestern Railway Company contracts, agrees and undertakes, in consideration of said sum of $11,875, so to be paid as aforesaid set out:
“First. To erect, build and maintain a levee from some point on the boundary line, on the east side of said Wayne county, and in township 27, to be selected by it, the said railway company, a levee or dam across that part of Wayne county known as Mingo swamp, to the high land on the west side of said swamp, to such point on the said opposite side as said railway company may deem best suited in that behalf —said levee, so erected, to have a top, or crown, of not less than twelve feet, and a base to be in proportion; and further, said railway company agrees to open continuous ditches along said levee on both sides, if necessary, to drain said land; it is, however, dis*355tinctly understood that the said railway company, if it shall deem it advisable, may build trestle, or drive piling, or build bridges, at any point or points along said levee where it shall be deemed advisable by it so to do; and that the said county of Wayne will not object or except to the fact that the said- levee is not a complete earth embankment ; but, on the other hand, the said railway company expressly agrees to drain the surface water when necessary into said places where it may have erected said trestle work, piling or bridging; and it is distinctly understood that it is discretionary in said railway where it may wish to erect and maintain said trestle, piling or bridging.
“Second. Said railway company agrees that it will do said work within two years from date of this contract, and also that within said time, in order to secure the permanency of said levee and work, it will build and operate upon said levee so thrown up and built by it, a railway, and to extend said railway in a continuous line through said township 27, in Wayne county, to some eligible point on the St. Francois river in said township.
‘ ‘ Third. And said railway company further agrees to cut down the timber on said line selected by it one hundred feet wide across said swamp to the county line.
11 Fourth. And said railway company covenants that if it shall extend its line in a westerly direction, that it will so extend the same through township 27, in Wayne county.
“Fifth. And it is further agreed, mutually, by said parties, that if the said railway company shall not, within two years from date, build said levee and extend its railway to the St. Francois, in township 27, in order to secure its permanency across the same, that the said deed or patent now in the hands of James F. Hatton as *356an escrow, shall be surrendered back to the said county court of Wayne, to be by .it canceled and for naught held. And, further, that the said railway company shall not be entitled to any pay or compensation for any work it may have done or performed in and about the building of said levee or digging of said ditches as aforesaid, if it fails, neglects or omits to do said work within the time aforesaid.
11 Sixth. It is further understood that the building of said levee as aforesaid, and laying the iron over the same, and through said township, to any point in said township, within one mile of the channel of said St. Francois river, shall be considered as having performed the contract on the part of said railway company, and that as soon as said levee is built and railway operated thereon, to secure its permanency, to said St. Francois river, as in this article set out, that the said James F. Hatton shall at once, without further order, decree or act, deliver the said deed or patent to said railway company.
“Seventh. It is agreed by the said railway company that the said work of building said levee, as in this contract set out, shall be done and performed under the direction of Wm. A. Penny, as commissioner of Wayne county, but that the county shall not be liable to pay the compensation or any compensation to said Penny in that behalf.”
The amount claimed is the value of nine thousand, five hundred acres of swamp land, at $1.25 per acre.
While the contract was entered into by plaintiff under the name of the Cape Girardeau Southwestern Railway, plaintiff subsequently changed its name to the St. Louis, Cape Girardeau and Fort Smith Railway Company, and is in fact the same party.
Defendant in its answer pleaded the adjudication and decision in Cape Girardeau Southwestern Railway *357Co. v. Hatton, 102 Mo. 45, in bar of this action, which plea was sustained, the petition dismissed, and final judgment rendered against plaintiff for costs, from which it appealed.
In the Hatton case, it was held that the contract here sued on'was merely an attempt to donate the lands therein described to the plaintiff, in consideration of the building and operating its road; was not a contract to deed the lands, which are swamp, for draining and reclaiming them, and that, as the county court in disposing of the land were but the agents of the county, with powers limited and defined by law, their acts were in excess of their powers, and the contract void.
It is insisted by counsel for plaintiff that the decision in that case is wrong and ought to be modified.
That the county court possessed the power to have the swamp lands belonging to the county drained and reclaimed, so as to render them tillable, is perfectly clear, as such authority was conferred upon it by the express provisions of section 6152, Revised Statutes 1879; but they had no right to donate the lands for the purpose of building a railroad, or for any other purpose. They are held by the county in trust for the school fund, and they can not be sold for any other purpose, but must be sold in the manner and for. the purposes indicated by the law concerning swamp lands. Sturgeon v. Hampton, 88 Mo. 211; State ex rel. Robbins v. County Court, 51 Mo. 84.
While the preamble to the contract seems to haA^e been an effort to disguise its real nature and legal effect, it needs but a casual reading of the contract to convince the mind that it was an effort on the part of the county court to donate the land for the purpose of aiding the construction of plaintiff’s raikoad, and not a sale for the benefit of the school fund, nor for draining. That this is the proper and only reasonable construction to *358be placed upon the contract seems to us perfectly clear. And as was said in tbe Hatton case: “No claim is made that tbe Wayne county court bad any authority in law to convey these lands to tbe company for tbe consideration that it would build its road along tbe designated route, and that is what was done and all that was done in this case. Tbe county courts in disposing of swamp lands are but tbe agent of tbe counties, with powers limited and defined by law, and, when they step outside of tbe law, their acts are void. Saline County v. Wilson, 61 Mo. 237; Sturgeon v. Hampton, supra."
Tbe Hatton case was followed and approved by this court in Brown Estate Co. v. Wayne County, 123 Mo. 464, and we think it correct upon both principle and authority.
Precisely tbe same issues were involved in tbe Hat-ton case as in this, and tbe plea of res judicata was properly sustained. Tbe judgment is affirmed.
All of this division concur.