On the twenty-first day of December, 1886, the plaintiff, by a written contract signed by the parties, leased to the defendant a quarter section of land for one year. At the same time the parties entered into another written contract, by which the defendant had the right to purchase the land at the expiration of the lease, upon certain terms named in the contract. By the last-named contract the defendant was required to make his election to purchase the land on the twenty-first day of December, 1887 ; that being the date of the expiration of the lease. The election was to be made by executing a writing in which the terms of the sale should be complied with. At the expiration of the lease the defendant caused the contract of purchase to be prepared, and there is evidence in the case tending to show that late in the evening of the twenty-first of December he tendered to the plaintiff a compliance with the contract of purchase. It is true the evidence upon the question as to the defendant’s election to purchase the land is in conflict, but it is sufficient to sustain the judgment of this court: The contention of the plaintiff is that the defense based upon a contract of purchase cannot be interposed in an action of forcible detainer, because it is provided by section 3620 of the Code that the question of title cannot be investigated in the action. But we think it is quite plain that the defendant did not seek to try titles with the plaintiff. He conceded that the title to that land was in plaintiff. His claim was that he was entitled to the possession of the land, because the plaintiff had contracted to sell it to him. That such a defense is proper, in an action of this kind, see Oleson v. Hendrickson, 12 Iowa, 222, and Jordan v. Walker 52 Iowa, 647. Affirmed.