U.S. Rep. Alan Grayson and his estranged wife, Lolita, agreed Tuesday to annul their 25-year marriage.

After more than a year of divorce proceedings that included Grayson's bigamy allegation against Lolita, the couple chose to settle rather than air dirty laundry at a hearing.

"It's a change for both of them to cooperate together and resolve their differences," said one of Alan Grayson's attorneys, Kenneth Morse, after a judge made the announcement.

Both parties met for about an hour before the scheduled hearing Tuesday to discuss a settlement. Circuit Court Judge Bob LeBlanc announced the decision during the three-minute session.

"The court has been made aware of the terms of the settlement, which based upon the law, does include an annulment of the marriage," LeBlanc said in a prepared statement. "The parties are working in good faith toward a fair and just resolution."

Last month LeBlanc urged the Graysons to settle, saying it would spare embarrassment for everyone involved, including the couple's five children.

Lolita Grayson and her lawyers would not comment after the announcement.

Mark NeJame, Alan Grayson's attorney, would not detail the settlement terms further but said he wants to present a final agreement to LeBlanc soon.

NeJame did not elaborate on whether the bigamy claims would be part of the settlement. In general, annulments erase the validity of a marriage, while a divorce acknowledges the marriage but ends it.

The proceedings date back to Jan. 6, 2014, when Lolita Grayson first filed for divorce.

Alan Grayson, a 57-year-old Democrat, responded with a petition for annulment, arguing that his marriage was void because Lolita Grayson had not divorced her first husband when the couple held a wedding ceremony in Virginia in 1990.

An annulment would not require an equitable division of $30 million in assets, whereas a divorce would distribute equally any wealth or debt acquired during the marriage.