This is an action pursuant to General Statutes § 49-13,1 to discharge a mortgage and lis pendens placed on the land records against certain real estate owned by the plaintiff located at White Sands Beach in the town of Old Lyme. On July 24, 1958, the plaintiff executed a promissory note in the amount of $3000 payable to the order of the defendant. A mortgage deed securing the note was also executed in the defendant’s favor. The terms of the note provided for interest at a rate of 6 percent per annum, payable quarterly upon the unpaid balance, together with all taxes assessed against the holder thereof and together with all costs and attorney’s fees incurred in any action to collect said note. The note also provided for payment of the principal sum and interest payable *479quarterly as follows: Seven hundred and fifty ($750) dollars together with interest on the 24th day of October, 1958, and a like sum quarterly thereafter until said principal sum, with interest, should be paid, and said note contained a provision for default in the event of nonpayment of any said quarterly payments for a period of ten (10) days after any payment should become due and payable at the option of the holder thereof.
No payment was ever made by the plaintiff and on or about March 17, 1959, the defendant brought an action seeking to foreclose the mortgage. As a result of this, the property was encumbered by a lis pendens noticing the commencement of the foreclosure action. On or about September 19, 1959, *480the foreclosure action was withdrawn2 but the lis pendens was not and still has not been released by the defendant.
The trial court found that the plaintiff has been in undisturbed possession of her property for at least seventeen years after the expiration of the time limited in the mortgage for the full performance of the conditions thereof and for seventeen years next preceding the commencement of any action pursuant to General Statutes § 49-13 (a) (1). The court also found that the seventeen year period had passed without any payment on account of the mortgage or of any other act within that time recognizing its existence as a valid mortgage. General Statutes § 49-13 (c). It held that the mortgage and the lis pendens were invalid as liens against the real estate and awarded damages to the plaintiff in the amount of $1000 plus costs. Finally, the court held “that the mortgage note subject to this action violates the terms of Section 37-5 and 37-9 of the Connecticut General Statutes and is void nunc pro tune and unenforceable.”3 From this judgment, the defendant has appealed.
*481The defendant has raised three claims of error on appeal. First, he claims that the evidence adduced at trial was insufficient to support a judgment for the plaintiff pursuant to General Statutes § 49-13. Specifically, he claims that there was evidence that, within the required seventeen year period, the plaintiff recognized the existence of the mortgage as a valid mortgage. Second, he claims that the conclusions reached by the trial court lacked a sufficient factual basis due to alleged inconsistencies. Finally, he claims that the trial court abused its discretion in holding that the mortgage note was void and unenforceable because it violated the provisions of General Statutes §§ 37-5 and 37-9 when neither party raised the issue of usury, illegality or unconscionability through the pleadings or at trial.
At the conclusion of trial and during final arguments, the court raised, for the first time, the usury issue by stating: “I am going to ask both gentlemen *482who are Commissioners of the Superior Court that what if the court in reviewing the evidence of this case decides that this usury note [is] in violation of 37-9 in that a mortgage on real estate less than $5,000 carries an interest rate of over 16% on the installments on the notes. Whether it is pleaded or not, what do you think the position of a Superior Court Judge is who hears testimony from which he can draw that conclusion?” “There is evidence before the Court that a note was signed for $3,000— . . . and only $2,500 was forthcoming, that is in violation of 37-9 which states that a note for under $5,000 on which there is a mortgage on real estate shall not exceed 12%. What do you think as Commissioners of the Superior Court the position of the Superior Court Judge should be if he believes that evidence? Do you understand what I am saying?”
Counsel for the defendant responded by stating that the usury issue was not pleaded and that, if it had been, he might have elicited more testimony on the issue at the trial.
Although the defendant forcefully argues that the court should have allowed a reasonable opportunity to make a factual showing about whether the note, in fact, violated General Statutes §§ 37-5 and 37-9; see Hamm v. Taylor, 180 Conn. 491, 497, 429 A.2d 946 (1980); we do not base our decision on that ground. We find that the trial court lacked jurisdiction to determine the validity of the note on the usury ground because that issue had not been raised in the pleadings. Lobsenz v. Davidoff, 182 Conn. 111, 116-17, 438 A.2d 21 (1980). We also find that the trial court lacked jurisdiction to discharge the mortgage pursuant to § 49-13 because *483based on the evidence the validity of the mortgage was in dispute. Simonelli v. Fitzgerald, 156 Conn. 49, 54, 238 A.2d 418 (1968). We therefore find error in the trial court’s decision.
The plaintiff expressly brought this action pursuant to General Statutes § 49-13.4 “The statute ‘does not declare that a mortgage upon which no payment has been made for a period of seventeen years or which has not been recognized as a valid mortgage within that period is unenforceable, but it gives the court the right to declare it invalid.’ [Arnold v. Hollister, 131 Conn. 34, 38-39, 37 A.2d 695 (1944)]. The purpose of a statute of this type is to provide a simple method whereby a mortgage, the invalidity of which is undisputed, may be declared invalid by the court and removed as a cloud on the title to the property. See Lewis v. Crowell, 205 Mass. 497, 499, 91 N.E. 910 [1910]; McMahan v. McMahan, 205 Mass. 99, 100, 91 N.E. 298 [1910]; Mitchell v. Bickford, 192 Mass. 244, 246, 78 N.E. 453 [1906]. The statute gives the court no jurisdiction to determine the validity or invalidity of a disputed mortgage of long standing. McMahan v. McMahan, supra, 101.” (Emphasis added.) Simonelli v. Fitzgerald, supra, 53-54; see O’Connell v. Everett, 274 Mass. 602, 175 N.E. 44 (1931). Additionally, when the trial court found that the mortgage note was void and unenforceable on usury grounds, it put in dispute and resolved the issue of the validity of the mortgage. It is clear from our holding in Simonelli that it had no jurisdiction to *484do so.5 “Where there is a controversy between the parties as to the validity and effect of a mortgage of this class, there are other ways of settling it. This statute is not applicable to such cases.”6 McMahan v. McMahan, supra. It “authorizes an action in which affirmative relief may be granted if and only if the conditions specified in it are met.” (Emphasis added.) Arnold v. Hollister, supra. The plaintiff’s own testimony indicated that, within the statutory seventeen year period, there had been a conversation between the parties in which the plaintiff was told that, because of the mortgage, the house could be taken away from her. She did not then demur from this representation. That testimony sufficiently put into issue the continued validity of the mortgage so that § 49-13 cannot be relied upon to afford the plaintiff the relief she seeks.
The case of Kaufman v. Samuelson, 134 N.J.L. 573, 49 A.2d 479 (1946), presented an issue strikingly similar to the one before us. In Kaufman, the focal issue was whether the judge had the authority to entertain the mortgagor’s application to direct the county clerk to cancel a real estate mortgage of record under a New Jersey statute permitting such action where no person representing the holder of the mortgage therein “shall ‘appear at the time and place specified therein [on the rule to show cause directed to and served upon the mortgagee issued on the mortgagor’s application for cancellation]’ . . . .” Kaufman v. Samuelson, supra, 576. On the *485hearing of the rule, the mortgagor and mortgagee appeared with their counsel and each actively participated in the case, and witnesses, including the parties, were sworn and testified. A question of jurisdiction of the subject matter arose under the cancellation statute, i.e., R.S. 2:66-3, N.J.S.A. That statute provided in pertinent part: “When the notice of the application for the cancellation of record of a mortgage shall have been served or advertised as provided in section 2:66-2 . .. and the person named in the order for service or advertisement of the notice, or any person representing him or interested therein, shall not appear at the time and place specified therein . . . and the judge shall be satisfied that the essential facts alleged in the application for cancellation are true . . . the judge may, by order, direct that the mortgage be cancelled of record . . . .” (Emphasis added.) Kaufman v. Samuelson, supra, 575-76. The court pointed out that the “authorization” of the judge to order cancellation of a mortgage under this statute “is limited to eases where no person representing the holder of the mortgage or interest therein shall ‘appear at the time and place specified therein . . . .’ ” It held that the mortgagee did legally “appear” under the statute and concluded that the judge “was without authority or jurisdiction ...” to cancel the mortgage of record. Kaufman v. Samuelson, supra, 576-77.7 In the case before us, as in Kaufman, the court acted without jurisdiction to do so.
*486There is error, the judgment is set aside and the case is remanded with direction to dismiss the action.
In this opinion Peters, J., concurred.