Richard G. Augur (“defendant”) appeals from judgment dismissing plaintiff’s complaint for a domestic violence protective order and denying defendant’s counterclaim for a declaratory judgment that the Domestic Violence Act is unconstitutional. We affirm the trial court’s judgment in part and reverse and remand in part.
*852I. Facts
Defendant and Leslie S. Augur (“plaintiff”) were married in 1981 and divorced in 1996. Three children were bom of the marriage.
Plaintiff sought a domestic violence protective order (“DVPO”) on 26 October 1999 claiming that defendant abused her the day before at a soccer game and that defendant had been physically and sexually abusive to her in the past. The court entered plaintiffs ex parte DVPO on 28 October 1999. At the return hearing on 1 November 1999, defendant served plaintiff with an answer and counterclaim for a declaratory judgment. Defendant also moved for and received a continuance to prepare for the hearing. The DVPO remained in effect. The trial court eliminated the provision in the DVPO that prohibited defendant from possessing and purchasing a firearm with plaintiffs consent.
On 13 December 1999, the trial court held a hearing on the merits. The trial court found that plaintiff had failed to prove that defendant committed any acts of domestic violence and dismissed plaintiffs complaint. The trial court retained defendant’s counterclaim under advisement. The North Carolina Attorney General was given due notice as required by the Declaratory Judgment Act. N.C. Gen. Stat. § 1-260 (1931).
On 7 August 2000, the trial court entered an order dismissing defendant’s counterclaim finding that the issue was moot after the court dismissed plaintiff’s complaint on 13 December 1999.
Defendant filed a Rule 60 motion for relief from judgment or order on 29 August 2000. On 6 September 2000, defendant timely filed notice of appeal to our Court. On 25 October 2000, the trial court set aside the 7 August 2000 order to give the North Carolina Attorney General an opportunity to be heard. The trial court entered a new and final judgment on 11 December 2000. Defendant appealed on 8 January 2001.
II. Issues
Defendant assigns as error the trial court’s (1) holding that the issues raised in defendant’s counterclaim are moot, (2) denying defendant’s counterclaim that the Domestic Violence Act is unconstitutional, and (3) refusing to consider defendant’s declaratory judgment counterclaim even if it was moot.
*853Defendant in his brief asks us to consider the constitutionality of the Domestic Violence Act as contained in Chapter 50B of the North Carolina General Statutes. The trial court did not address the merits of his request for a declaratory judgment. “Although the North Carolina Declaratory Judgment Act does not state specifically that an actual controversy between the parties is a jurisdictional prerequisite to an action thereunder, our case law does impose such a requirement.” Sharpe v. Park Newspapers of Lumberton, Inc., 317 N.C. 579, 583, 347 S.E.2d 25, 29 (1986) (citing Gaston Bd. of Realtors v. Harrison, 311 N.C. 230, 234, 316 S.E.2d 59, 61 (1984)). In ruling on the requisite timing of the controversy, our Supreme Court held that in order for a court to have subject matter jurisdiction to render a declaratory judgment, there must be “an actual controversy . . . both at the time of the filing of the pleading and at the time of hearing." Sharpe, 317 N.C. at 585, 347 S.E.2d at 30 (citing Harrison, 311 N.C. at 234-35, 316 S.E.2d at 62) (emphasis supplied).
At the time defendant filed his answer and counterclaim for a declaratory judgment on 1 November 1999, and at the time of the return hearing on 13 December 1999, an actual controversy existed between plaintiff and defendant. Plaintiff and defendant were divorced in 1996 after lengthy and rancorous divorce proceedings. Sometime in 1997, plaintiff filed a domestic violence complaint and obtained an ex parte order against defendant. Plaintiff dismissed the case before a hearing was held.
On 26 October 1999, plaintiff filed for a DVPO. She appeared ex parte and pro se on 28 October 1999 and obtained the DVPO, which found that: (1) defendant had committed acts of domestic violence against plaintiff, and (2) the ex parte DVPO was necessary to protect plaintiff; the DVPO ordered that defendant: (1) shall not interfere with, assault, threaten, abuse, follow, or harass plaintiff, (2) shall stay away from plaintiffs residence and work, (3) shall have no contact with plaintiff, and (4) is prohibited from possessing and purchasing a firearm. Plaintiff and defendant appeared at the return hearing on 1 November 1999. Defendant served plaintiff at the return hearing with his answer, counterclaim for a declaratory judgment, request to lift the firearm restriction, and a request for a continuance, arguing that he could not mount a proper defense on 3 days notice. Plaintiff consented to the continuance and the lifting of the firearm restriction. At the return hearing on 13 December 1999, the trial court found that defendant did not commit an act of domestic violence against plaintiff, dismissed plaintiff’s complaint, and took defendant’s counterclaim under advisement.
*854Article 26 “is declared to be remedial, its purpose is to settle and to afford relief from uncertainty and insecurity with respect to rights, status, and other legal relations, and it is to be liberally construed and administered.” N.C. Gen. Stat. § 1-264 (1931). “[CJlaims for injunctive and declaratory relief regarding ‘any statute’ or ‘any claim of constitutional right’ are the particular province of the superior courts.” Simeon v. Hardin, 339 N.C. 358, 368, 451 S.E.2d 858, 865 (1994) (citing N.C. Gen. Stat. § 7A-245 (1989)). We hold that an actual controversy existed between plaintiff and defendant at the time defendant filed his answer and counterclaim for a declaratory judgment on 1 November 1999, and at the time of the return hearing on 13 December 1999, in order to determine the constitutionality of the Domestic Violence Act. “[A] counterclaim is in the nature of an independent proceeding and is not automatically determined by a ruling in the principal claim . . . .” Brooks v. Gooden, 69 N.C. App. 701, 707, 318 S.E.2d 348, 352 (1984) (citing N.C. Gen. Stat. § 1A-1, Rule 13 (1967)). Defendant is entitled under the Declaratory Judgment Act to a determination of the constitutionality of the Domestic Violence Act.
We re-affirm this Court’s general rule that we will not decide constitutional issues in the first instance when the trial court has not ruled upon them. State v. Cummings, 353 N.C. 281, 292, 543 S.E.2d 849, 856 (2001) (“Constitutional questions that are not raised and passed upon in the trial court will not ordinarily be considered on appeal.”) (citing State v. Braxton, 352 N.C. 158, 173, 531 S.E.2d 428, 436-37 (2000), cert. denied, 531 U.S. 1130, 148 L. Ed.2d 797 (2001); accord Nobles, 350 N.C. at 495, 515 S.E.2d at 893)).
We affirm that portion of the trial court’s judgment dismissing plaintiffs complaint. We reverse the trial court’s order dismissing defendant’s counterclaim and remand to the trial court to consider and rule upon defendant’s requested declaratory judgment.
Affirmed in part, reversed and remanded in part.
Judge HUNTER concurs. Judge GREENE dissents.