The New York Attorney General's Office asked a judge on Thursday to ban President Trump from being involved in a nonprofit organization for 10 years following his time in office.

New York Attorney General Barbara Underwood wrote Thursday in a memo to New York Supreme Court Justice Saliann Scarpulla that Trump had demonstrated "a pattern of persistent illegal conduct" in managing his Trump Foundation charity because he used funds "for his own personal benefit."

The state sued the foundation in June on the basis that it used donor money on nonfoundation items, including to bolster his political career, and seeks to have the foundation dissolved. The state discovered the alleged wrongdoing through a financial crimes investigation into Trump's former personal attorney, Michael Cohen.

The document filed this week asks the judge to ignore the Trump family's denial of wrongdoing and request the suit be thrown out, Underwood claims Trump "solicited donations that went directly into his Foundation and then gave his Campaign authority to control the donated funds, which were ultimately distributed in a manner designed to help Mr. Trump's presidential bid."

The top state prosecutor, a Democrat, said she believes Trump's actions were in violation of state and federal laws because he allegedly used money people gave thinking they were supporting a nonprofit to instead pay off legal debts, advertise his hotels, and fund a $10,000 portrait of himself.

The legal document states Trump's three adult children — Donald Trump Jr., Ivanka Trump, and Eric Trump — who were directors of the foundation at the time, let their father violate federal and state law by permitting him to use money given to the charity to help himself personally, in business, and advance his political interests.