(CNN) President Donald Trump defended his personal charitable foundation and lashed out at the New York attorney general's office for its civil lawsuit against the nonprofit one day after the charity agreed to dissolve under judicial supervision.

In several tweets Wednesday morning, Trump made a series of claims, many misleading, concerning the Donald J. Trump Foundation -- which the attorney general's lawsuit alleges violated campaign-finance laws, abused its tax-exempt status and engaged in unlawful coordination with Trump's presidential campaign -- and about the attorney general's office itself.

"The Trump Foundation has done great work and given away lots of money, both mine and others, to great charities over the years -- with me taking NO fees, rent, salaries etc," Trump said.

The Washington Post and others have found that Trump donated little of his personal money to the charity after 2006, and the attorney general's lawsuit accuses the foundation of self-dealing. In one instance, for example, $100,000 from the nonprofit was used to settle legal claims against his Mar-a-Lago resort in Palm Beach, Florida, according to the lawsuit.

Trump additionally claimed Wednesday that the lawsuit was politically motivated. "Now, as usual, I am getting slammed by Cuomo and the Dems in a long running civil lawsuit started by ... sleazebag AG Eric Schneiderman, who has since resigned over horrific women abuse, when I wanted to close the Foundation so as not to be in conflict with politics," Trump tweeted.

Read More