delivered the opinion of the court:
Defendant, Metropolitan Sanitary District of Greater Chicago (District), brings this permissive interlocutory appeal pursuant to Supreme Court Rule 308 (Ill. Rev. Stat. 1979, ch. 110A, par. 308) from an order of the trial court denying both its motion to dismiss and its motion for summary judgment. The appeal presents the question:
“Can a wrongful death action be brought by an administrator if the decedent would have been barred by the two year personal injury statute of limitations from maintaining a personal injury suit immediately prior to his death?”
On April 2, 1976, plaintiff, widow and administrator of the estate of Richard P. Lambert, Jr., filed a wrongful death action against the District and the Village of Summit. In its application for leave to appeal, the District summarized the allegations of the complaint as follows: that in 1951 and 1952, the decedent was the mayor of the Village of Summit; that at that time a controversy existed between Summit and neighboring communities and the District concerning the District’s operation of sludge lagoons on its property in the area; that in 1951 and 1952, the decedent’s duties as mayor included inspection of the lagoons and adjacent areas, buildings and structures and obtaining samples of the sludge for testing; that the decedent suffered a lung infection as a proximate result of the careless, negligent and improper operation of the sludge lagoons by the District; that as a result of these acts in 1951 and 1952, the decedent died on January 27,1975; and that the decedent left as his survivors his widow and a daughter.
On April 23,1976, the District filed a motion to dismiss the complaint on the ground that the administrator was barred by section one of the Wrongful Death Act (Ill. Rev. Stat. 1975, ch. 70, pars. 1, 2) because an action for personal injuries, on the part of the decedent prior to his death, would have been barred by the applicable two-year statute of limitations. On July 15, 1976, the trial court denied this motion “without prejudice” because, in its opinion, the statute of limitations in a wrongful-death action does not begin to run until the date of the decedent’s death. Subsequently, on December 12, 1979, the District filed a motion to dismiss on the further ground that at the time of the alleged injury to the decedent, the defense of governmental immunity was still available to the District in actions sounding in tort. This motion to dismiss was merged *1036into a motion for summary judgment which incorporated depositions showing that Lambert knew and believed from February or March, 1953, to the date of his death that his injuries might have been caused by the occurrences alleged in the complaint. In her reply to the District’s motion for summary judgment, plaintiff admitted, for purposes of the motion, that from approximately March 1953 the decedent was aware that the incidents in question could have been the cause of his lung condition which resulted in his death in January 1975. The trial court then entered the order from which this interlocutory appeal is taken, and we allowed the District’s application for leave to appeal.
Section one of the Wrongful Death Act (Ill. Rev. Stat. 1975, ch. 70, par. 1) provides:
“Whenever the death of a person shall be caused by wrongful act, neglect or default, and the act, neglect or default is such as would, if death had not ensued, have entitled the party injured to maintain an action and recover damages in respect thereof, then and in every such case the person who or company or corporation which would have been liable if death had not ensued, shall be liable to an action for damages, notwithstanding the death of the person injured, and although the death shall have been caused under such circumstances as amount in law to felony.” (Emphasis added.)
The act also provides that every such action shall be commenced within two years after the death of such person. (Ill. Rev. Stat. 1975, ch. 70, par. 2.) Under the Limitations Act (Ill. Rev. Stat. 1975, ch. 83, pars. 1 through 12a and 13 through 27), actions for damages for an injury to the person shall be commenced within two years after the cause of action accrued. Thus, the first question presented is whether the expiration, in the decedent’s lifetime, of the limitation period applicable to his action for personal injuries will defeat an action under the Wrongful Death Act for his death resulting from the injuries.
The language of section one of the Wrongful Death Act has been construed in several Illinois Supreme Court cases. In Mooney v. City of Chicago (1909), 239 Ill. 414, 88 N.E. 194, the court stated:
“One condition upon which the statutory liability depends is that the deceased had a right of recovery for the injuries at the time of his death, and there is no right in the administrator to maintain an action unless the deceased had the right to sue at the time of his death.” (Emphasis added.) (239 Ill. 414, 423.)
In that case, the decedent had been injured on May 5, 1903. After the accident, he executed an instrument of release in satisfaction for the damages resulting from the accident, acknowledging full satisfaction of all claims against his employer on account of the injuries sustained. His *1037employer made the payments specified in the release. The decedent died on May 23, 1903. The supreme court stated that if the decedent had released the cause of action, the Wrongful Death Act did not confer upon the administrator any right to sue and held that an instruction was erroneous in ignoring the affirmative defense of release.
Similarly, in Biddy v. Blue Bird Air Service (1940), 374 Ill. 506, 30 N.E.2d 14, the court stated:
“[T]he liability there created [by section one of the Wrongful Death Act] depends upon the condition that the deceased, at the time of his death, had he continued to live, would have had a right of action against the same person or persons for the injuries sustained. If the deceased had no right of action at the time of his death, the personal representative has none under the Injuries Act." (Emphasis added.) (374 Ill. 506, 513-14.)
In Biddy, the plaintiff had brought an action under our Injuries Act (also known as the Wrongful Death Act) and alleged that negligence of the defendants in the operation of an airplane was the cause of the decedent’s death. The decedent and his employer had elected to be bound by the Workmen’s Compensation Act of the State of Michigan. Under that act, the decedent, had he lived, would have been required to elect whether he would demand compensation from his employer or sue the defendants in an action at law for damages. The court stated:
“Had he [decedent] survived the accident and made the election to accept compensation and later died from the injuries, the plaintiff could not now maintain this action, for at the time of her intestate’s death he had no cause of action against the defendants.” (374 Ill. 506, 514.)
But Biddy died without having made that election. The court held that when the decedent’s dependents elected to claim compensation from his employer under the Michigan law, they became bound by the provisions of that act and that the trial court erred in sustaining the plaintiff’s motion to strike the defendants’ defense setting up the Michigan statute. The court stated: “Plaintiff has no greater right to maintain an action against the defendants under the Injuries statute than Biddy [decedent] would have had if he had lived.” 374 HI. 506, 515.
On the authority of these cases, we conclude that there can be no recovery under our Wrongful Death Act where the decedent once had a cause of action, but was not entitled to maintain that action and recover damages at the time of his death. (See also Nudd v. Matsoukas (1956), 7 Ill. 2d 608, 613, 131 N.E.2d 525; Howlett v. Doglio (1949), 402 Ill. 311, 319, 83 N.E.2d 708; Clarke v. Storchak (1943), 384 Ill. 564, 571-72, 52 N.E.2d 229, appeal dismissed (1944), 322 U.S. 713, 88 L. Ed. 1555, 64 S. Ct. 1270; *1038 Little v. Blue Goose Motor Coach Co. (1931), 346 Ill. 266, 271, 178 N.E. 496. )1 We further conclude that since the decedent in the case at bar was not entitled to maintain an action and recover damages for his injury at the time of his death, because the two-year personal injury statute of limitations had run, his administrator cannot now maintain this action for wrongful death.
The only Illinois case cited by the parties which reached the precise question presented is Donnelly v. Chicago City Ry. Co. (1911), 163 Ill. App. 7. That case arose out of a collision on May 29,1897, between a hose carriage and an electric car. Plaintiff’s intestate was thrown to the ground and received an injury to his head. He died on May 7,1900, allegedly as a result of this injury. Suit was brought on May 6, 1902, and subsequently, judgment was entered upon a verdict of $5,000. On appeal it was argued that the suit was barred by the statute of limitations. The court found that no assignment of error was based specifically upon the proposition that the suit was barred by the statute of limitations and held that since the error was not raised by any assignment of error, it was not open to review. The court proceeded, however, to conclude that even if the error was well assigned, there was no merit in the contention. In that court’s opinion, “the only limitation on the right of the personal representative of the injured person to sue is that contained in the [wrongful death] act which gives the right to the personal representative to sue, namely two years * * * from the date of the death of the person injured.” (163 Ill. App. 7, 15.) The court expressed its rationale in the following words:
“In our opinion, this language [of section one of the Wrongful Death Act] refers to the right of the injured person as it existed immediately after the accident and not to the situation as it would exist more than two years after the accident, when the right of the injured party had expired by the limitation. The action for the death is different from the action by the injured man himself, in this, that two things must exist; the injury must have been sustained because of the neglect or default of the defendant, and the person injured must have died. It is not until death occurs that the right of *1039action in the widow and next of kin through the administrator exists.” 163 Ill. App. 7,15.
We do not follow the decision in Donnelly for three reasons. First, the Donnelly court’s analysis of the question presented in this appeal is obiter dicta. Secondly, the aforementioned rationale of the Donnelly court is inconsistent with our supreme court’s opinions in Mooney and Biddy, which require in wrongful death actions that the decedent have a right of action and recovery at the time of his death. Thirdly, policies promoted by statutes of limitations would be undermined if we were to follow Donnelly. The primary purpose of limitation periods, according to our supreme court, is “to require the prosecution of a right of action within a reasonable time to prevent the loss or impairment of available evidence and to discourage delay in the bringing of claims.” (Tom Olesker's Exciting World of Fashion, Inc. v. Dun & Bradstreet, Inc. (1975), 61 El. 2d 129, 132, 334 N.E.2d 160.) In this way, statutes of limitations attempt “to insure that a defendant will have a reasonable opportunity to investigate a claim and prepare a defense within a time period in which facts are still accessible and witnesses are still available.” (Lind v. Zekman (1979), 77 Ill. App. 3d 432, 435, 395 N.E.2d 964.) These policy considerations apply with equal validity whether the plaintiff is an injured party or his personal representative.
Plaintiff relies on Herget National Bank v. Berardi (1976), 64 Ill. 2d 467, 356 N.E.2d 529, and Welch v. Davis (1951), 410 Ill. 130, 101 N.E.2d 547. Both cases involved actions by the administrator for the estate of the wife against the executor for the estate of the husband. In Berardi, an airplane piloted by the husband crashed and his wife was a passenger. Both died. In Welch, the husband shot his wife and then shot and killed himself. His wife died a few minutes later. In each case, the court held that the administrtor of the wife’s estate may maintain an action for wrongful death despite the immunity from suit by virtue of the marital relationship. The apparent rationale for these decisions is that actions brought for the benefit of surviving children of the deceased mother were not within the contemplation of the rule that a wife cannot sue her husband. From these cases, plaintiff argues: “Defenses which would have existed against a decedent, if death had not ensued, do not necessarily exist against his personal representative.” She, however, fails to show how these cases affect the defense of the statute of limitations, and we do not find them dispositive of the question presented. Furthermore, neither of these cases attempted to overrule Biddy or Mooney.
Plaintiff also relies upon Wilson v. Tromly (1949), 404 Ill. 307, 89 N.E.2d 22, and Metropolitan Trust Co. v. Bowman Dairy Co. (1938), 369 Ill. 222, 15 N.E.2d 838. Neither case involves a fact situation or issue even *1040remotely similar to the instant case. Wilson held that a counterclaim filed under the Wrongful Death Act was barred by the time limitation of that act even though filed within the time fixed by law for filing defensive pleadings. Bowman Dairy Co. held that an amended complaint filed under the Wrongful Death Act was governed by its time limitation but not barred thereby where the amendment met all the requirements of section 46 of the Civil Practice Act, and therefore related back to the original complaint which was filed within that time. In the case at bar, unlike Wilson and Bowman Dairy Co., the time requirement of the Wrongful Death Act was clearly met. Here plaintiff argues that the time limitation contained in the Wrongful Death Act is the only limitation on the right of the personal representative of the injured person to sue. These cases do not support this argument.
At oral argument of this case, a question arose concerning the nature of the statute of limitations as an affirmative defense. An argument was made that until a defendant raises the affirmative defense of the statute of limitations, the plaintiff can maintain his action even though it appears that the action is barred by such statute. The argument apparently continues that the decedent’s action was not barred at the time of his death because the statute of limitations was never raised. We agree that the statute of limitations is not at issue until it is raised by the defendant as an affirmative defense. (Cutsinger v. Cullinan (1979), 72 Ill. App. 3d 527, 531, 391 N.E.2d 177.) However, we do not find this argument persuasive. Mooney v. City of Chicago, discussed above, involved the defense of release which is also an affirmative defense. (Mooney v. City of Chicago (1909), 239 Ill. 414, 422; Ill. Rev. Stat. 1975, ch. 110, par. 43(4).) As an affirmative defense, a release must be raised in the trial court pleadings, and if it is not properly pleaded, it is deemed waived. (See Alco Standard Corp v. F. & B. Manufacturing Co. (1970), 132 Ill. App. 2d 24, 28, 265 N.E.2d 507, modified on appeal (1972), 51 Ill. 2d 186.) We, therefore, conclude that the classification of the statute of limitations as an affirmative defense is of no consequence.
We also note that a statute of limitations is generally considered to affect the remedy only, and not a substantive right. (Fender v. St. Louis Southwestern Ry. Co. (1979), 73 Ill. App. 3d 522, 526, 392 N.E.2d 82; Cook v. Britt (1972), 8 Ill. App. 3d 674, 676, 290 N.E.2d 908.) In this, the statute of limitations may be distinguishable from a release. However, our concern is only whether the decedent was entitled to maintain an action and recover damages at the time of his death. For the purpose of this inquiry, we find no reason to distinguish the defense of release from the defense of the statute of limitations.
In sum, we conclude that the expiration, in the decedent’s lifetime, of *1041the limitation period applicable to his action for personal injuries will defeat a wrongful-death action for his death resulting from the injuries. Therefore, we need not address the second question raised in this appeal concerning governmental immunity.
For the reasons stated above, the order of the circuit court of Cook County is reversed.
Reversed.
McNAMARA, J., concurs.