# Rule 2-324. Preservation of Certain Defenses

Text from govt.westlaw.com/mdc, fetched October 26, 2026. Westlaw reports amendments received through September 1, 2026. Westlaw credits and annotations omitted. Under Rule 1-105(b), the official record is the paper record kept by the Clerk of the Supreme Court of Maryland.

## Rule 2-324. Preservation of Certain Defenses

Md. R. 2-324

(a) **Defenses Not Waived.** A defense of failure to state a claim upon which relief can be granted, a defense of failure to join a party under Rule 2-211, an objection of failure to state a legal defense to a claim, and a defense of governmental immunity may be made in any pleading or by motion for summary judgment under Rule 2-501 or at the trial on the merits.

(b) **Subject Matter Jurisdiction.** Whenever it appears that the court lacks jurisdiction of the subject matter, the court shall dismiss the action.

> Source: This Rule is derived as follows:

> Section (a) is derived from the 1966 version of Fed. R. Civ. P. 12 (h)(2) and former Rule 323 b.

> Section (b) is derived from the 1966 version of Fed. R. Civ. P. 12 (h)(3).
