President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE’s charity, the Donald J. Trump Foundation, has agreed to dissolve amid allegations from the New York Attorney General's Office that it engaged in a "shocking pattern of illegality."

New York Attorney General Barbara Underwood (D) announced Tuesday that her office will continue to pursue its lawsuit against the foundation, which seeks $2.8 million in restitution plus penalties, as well as an order barring Trump and his three oldest children — Donald Trump Jr. Don John Trump'Tiger King' star Joe Exotic requests pardon from Trump: 'Be my hero please' Zaid Jilani discusses Trump's move to cancel racial sensitivity training at federal agencies Trump International Hotel in Vancouver closes permanently MORE, Ivanka Trump Ivana (Ivanka) Marie TrumpSpecial counsel investigating DeVos for potential Hatch Act violation: report Trump, Biden vie for Minnesota Trump luxury properties have charged US government .1M since inauguration: report MORE and Eric Trump Eric Frederick TrumpJudge orders Eric Trump to comply with New York AG's subpoena before Election Day Eric Trump uses misleading clip to blast Biden for using teleprompter Melania Trump: Ginsburg's 'spirit will live on in all she has inspired' MORE — from serving on the boards of other New York charities.

Under the agreement, the foundation will dissolve under judicial supervision and provide the court with a list within 30 days of the not-for-profit organizations that receive money from the charity's remaining assets.

ADVERTISEMENT

Underwood's lawsuit, filed in June, alleged that Trump used the charity for political and personal gain. Underwood said the investigation she opened against the foundation in 2016 revealed the charity “was little more than a checkbook for payments to not-for-profits from Mr. Trump or the Trump Organization.”

“This resulted in multiple violations of state and federal law because payments were made using Foundation money regardless of the purpose of the payment,” she argued in the court filing.

“Mr. Trump used charitable assets to pay off the legal obligations of entities he controlled, to promote Trump hotels, to purchase personal items, and to support his presidential election campaign.”

Underwood said the stipulation reached Tuesday accomplishes a key piece of the lawsuit.

“Under the terms, the Trump Foundation can only dissolve under judicial supervision — and it can only distribute its remaining charitable assets to reputable organizations approved by my office."

The agreement comes after a judge on the New York Supreme Court last month allowed the state’s lawsuit against the Trump Foundation to go forward.

“Our petition detailed a shocking pattern of illegality involving the Trump Foundation — including unlawful coordination with the Trump presidential campaign, repeated and willful self-dealing, and much more,” Underwood said in a statement.

Updated at 11:36 a.m.