delivered the opinion of the Court.
In this appeal, we decide (1) whether a provision of a property settlement agreement, which was ratified, affirmed, and incorporated by reference into a divorce decree, is void and, if so, (2) whether the decree may be attacked and vacated after it has become final.
On April 29, 1985, David Allen Kelley (Husband) and Marilyn Gibson Kelley (Wife) executed a property settlement аgreement (the Agreement). On September 23, 1985, the trial court (the Circuit Court of the City of Roanoke) entered a divorce decreе which ratified, affirmed, and incorporated by reference the Agreement.
The Agreement contained the following provision:
The parties hereto agree, in consideratiоn of Husband relinquishing all of his equity in the jointly-owned marital home, that Husband shall never be responsible for payment *297 of child support. The [Wife] сovenants and agrees never to file a petition in any Court requesting that [Husband] be placed under a child support Order because [Wife] has accepted all of [Husband’s] equity in lieu of requesting child support.
In the event [Wife] should ever petition any Court of cоmpetent jurisdiction for support and maintenance of [the children], and should a Court grant any such child support award, the said [Wife] hеreby covenants and agrees to pay directly to [Husband], any amount of support that he is directed to pay to any party. In оther words, [Wife] is agreeing to hold harmless [Husband] from the payment of any amount of child support, regardless of the circumstances under which he is paying same.
Pursuant to the Agreement, the Husband conveyed his equity in the marital home, valued at $40,000, to the Wife. For approximately six years thereafter, the Husband paid nothing toward the support of his children; the Wife, alone, supported them.
In late 1990, the Husband petitioned the trial court for definite periods of visitation with his children, and the Wife petitioned the court to require the Husband to pay child support. The Husband countered with a motion requesting the court to order the Wife to reimburse him for any amount of child support he was required to pay.
The trial court ordered the Husband to pay support and denied the Husband’s motion, ruling that the indemnification and reimbursement provision of the Agreement was null and void. The Husband appealed from the trial court’s judgment to the Court of Appeals. The Husband did not challenge the ordered child support, but contended that the trial court erred in holding that the indemnification and reimbursement provision of the Agreement was void and unenforceable.
The Court of Appeals, upon rehearing
en banc,
reversed the trial court’s judgment, concluding that the trial court lackеd jurisdiction to alter the terms of the Agreement or decree. The Court of Appeals reasoned that, pursuant to Rule 1:1, the Seрtember 23, 1985 decree became final, and not subject to modification, after 21 days from the date the decree was entered.
Kelley
v.
Kelley,
17
*298
Va. App. 93,
Both parents owe a duty of support to their minor children. Code § 20-61;
Featherstone
v.
Brooks,
In the present case, the parties agreed that the “Husband shall nevеr be responsible for payment of child support.” The Wife agreed “never to file a petition in any court” requesting support fоr the children. The Wife covenanted that, if a court ordered the Husband to pay child support, she would reimburse the Husband for all sums paid by him. She further agreed to hold the Husband harmless for any amount of child support he was required to pay.
Clearly, the parties contracted away the Husband’s legal duty to support his children and, in effect, placed upon the Wife the sole duty of support. Additionally, thе Wife’s ability to contribute to the support of the children was adversely affected. Thus, the children’s rights to receive support from bоth parents were substantially abridged, and the court’s power to decree support was diminished. We hold, therefore, that the chаllenged provision of the Agreement is null and void because it is violative of clearly established law.
Next, we consider whether the trial court had jurisdiction to declare the provision null and void. The Court of Appeals ruled that the trial court lacked jurisdiction. Citing Rule 1:1, the Court of Appeals held that “after the expiration of twenty-one days immediately following the entry of the 1985 divorce decree, except to modify the amount of child support, the trial court lacked juris
*299
diction to alter the terms of the [Agreement] or the decree.”
Kelley,
The Court of Appeals relied largely upon
Rook
v.
Rook,
The present case is distinguishable from Rook beсause it involves the rights of children to support and maintenance. These rights, as previously noted, cannot be impinged by contract, and any contract purporting to do so is facially illegal and void.
In the present case, the subject provision of the Agreеment was ratified, affirmed, and incorporated by reference into the divorce decree and, therefore, “shall be deemed for all purposes to be a term of the decree.” Code § 20-109.1. Consequently, that portion of the decree that relatеs to the void provision is, itself, void.
It is firmly established that a void judgment may be attacked and vacated in any court at any time, directly or collaterally.
Rook,
Accordingly, we will reverse the judgment of the Court of Appeals, affirm the trial court’s ruling, and enter final judgment for the Wife.
Reversed and final judgment.
Notes
Rule 1:1 provides, in pertinent part, as follows:
All final judgments, orders, and decrees . . . shall remain under the control of the trial court and subject to be modified, vacated, or suspended for twenty-one days after the date of entry, and no longer.
