delivered the opinion of the Court. The action of mortgagee against mortgagor, by the laws of this Commonwealth, is substantially a statute proceeding; it is a remedy at once furnished, regulated and limited by statute. This is significantly illustrated by the case before us, which presents the legal anomaly of a real action brought by an administrator. This proceeding could only be legalized by the provisions of the statute. These however are founded upon and justified by a course of legal policy, designed to make all real estate and all rights to land, liable to the payment of the debts of the owner, and that as well by legal processes affecting it in his lifetime, as after his decease. To many purposes, a mortgage, though a conveyance of real estate, is a security for the pay *144ment of money. As the debt goes to the personal representative, it is consistent with the general policy, that the estate constituting the pledge, should go with it, and be available to him, according to the original intent, as an actual security.
This action therefore may be considered as a special real action given by the statute to the mortgagee, in his lifetime, and to his executor or administrator after his decease, to enable him, in case the debt secured by it is not paid, to have the actual possession of the estate ; with a double view, first, that he may have the pernancy of the profits, in satisfaction, pro tanto, of the interest and principal due on the debt, and secondly, which may be regarded as the main purpose, that the commencement of a term of three years may be fixed, the lapse of which, if the debt remains unpaid so long, shall foreclose the mortgage and bar the right of redemption. But both these purposes are means, to an ultimate end, that of insuring the payment of the debt secured. If therefore the debt is fully paid or otherwise discharged, the ultimate purpose of the statute is accomplished.
By the terms of the statute, the Court are required, to rei.der a conditional judgment, to wit, that the plaintiff shall have the final process of the Court, to put him into the actual possession of the mortgaged estate, unless the debt, or the balance due upon it, is paid within sixty days from the time of the rendition of such judgment. If the money is so paid, the process is at an end, the purpose of the statute is accomplished, and the estate stands discharged of the incumbrance. These provisions of the statute involve the necessity, not merely of inquiring into the title put in issue by the pleadings, in this form of action, but also the existence and amount of the debt, claimed to be due, in order to the entry of the conditional judgment. If it appears that the debt has been wholly paid, nothing remains due, no conditional judgment can be entered, the statute authorizes no other judgment, and it follows, as a necessary legal consequence, that the plaintiff can have no judgment, and the defence prevails.
We are then to apply these rules and principles to the present case. Supposing the title to be well proved by the plaintiff as the administrator of the mortgagee, then the Court *145proceed to inquire whether any thing, and if any thing what, was due on the mortgage. It appears that the mortgage was given to secure several obligations and duties, among the rest, the payment of two notes of $ 300 each ; and all these duties and obligations were performed, except the payment of these two notes. The question was then resolved into this, whether there was any thing due on the two notes. The defendant offered evidence, mainly that of the confessions of the plaintiff’s intestate, to show that they were given without consideration, and that nothing was due thereon. The question, as between original parties, whether any thing is due on a note of hand, must be conducted in nearly the same way and depend mainly upon the same evidence, whether that is the direct question put in issue by the pleadings, or whether it arises collaterally in the suit. It may be an anomaly in the law, but it is now tot) well settled to be questioned, that in a suit by promisee against promisor, want of consideration is a good defence. Conformably to this rule, the Court are of opinion, that this was a proper subject of inquiry in the present case ; and as all the other obligations secured by the mortgage had been performed, and as the jury found that these notes were given without consideration, there was nothing to found a conditional judgment upon, and this amounted to a good defence. The decision of the. Court therefore was right, that if the notes were given without consideration, it was a good bar to the action, by showing nothing due.
But the demandant contended, that if the notes were given by the defendant with a view to secure property to his wife, to delay and defraud his own creditors, he was estopped from showing a want of consideration by way of defence to the action. But we think the judge was correct in directing the jury, that if the notes were made without consideration, it might be shown in defence, and that it was not competent for the demandant to rebut this defence by showing that the notes were also fraudulent as given to delay creditors, or to avail himself of incidents coming out in the general inquiry, to argue that fact to the jury. The general rule of policy is, in pari delicto potior est conditio defendentis. If there was an intent to defraud creditors, it was an intent common to both parties, *146affecting as well the plaintiff’s intestate as the defendant. It is the plaintiff who is the actor and is seeking to enforce the payment of these notes. It may well be held, that the defendant would not be permitted to show that the notes were made to delay and defeat creditors as a substantive ground of defence, on the well known maxim, nemo allegans suam turpitudinem audiendus sit; and therefore if a legal consideration were shown, such a defence could not avail. But independently of this ground, he shows want of consideration, and it is the demandant who seeks to rebut that defence, by showing that the notes w'ere given as well to defeat creditors, as without consideration. If he could not do that directly by giving the fact in evidence, we think he could not do it indirectly by an argument to the jury founded on circumstances coming out casually from evidence, offered for another and a different purpose.