For months, Donald Trump has accused Hillary Clinton of illegally engaging in “pay for play” practices while leading the State Department by giving undue access to major Clinton Foundation donors—but now, it is the G.O.P. nominee’s own namesake foundation that is under investigation. Following a series of reports that have raised questions about the tax-exempt Donald J. Trump Foundation and whether it engaged in illegal “self-dealing”, New York attorney general Eric Schneiderman has launched an investigation into the private nonprofit.

On Tuesday night during an interview on CNN’s The Lead, Schneiderman said that his office has begun an official inquiry into the Trump Foundation to determine whether it is “complying with the laws governing charities in New York.” The attorney general’s proclamation follows a slew of bad headlines and press surrounding the foundation, which the Republican standard-bearer founded almost three decades ago.

The Trump Foundation, whose unusual dealings have long raised eyebrows, was thrust into the national spotlight again this summer when it was revealed that the purported charity gave a $25,000 political contribution to Florida attorney general Pam Bondi in 2013, just as the politician was deciding whether to investigate Trump University for alleged fraud. The donation was a violation of tax laws, for which Trump paid a $2,500 penalty, but questions about the donation have lingered. The revelation unleashed a wave of scrutiny, including calls earlier this week by House Judiciary Committee Democrats for Attorney General Loretta Lynch to open an investigation into the Bondi contribution. (Both Trump and Bondi have denied any wrongdoing.) Most recently, a Washington Post investigation published Monday found that Trump donates very little to his family foundation, but leverages it to benefit himself—including by branding the donations of others as his own. In one instance, Trump reportedly spent $20,000 of the charity’s money on a six-foot-tall portrait of himself and another $12,000 on a football helmet autographed by the then quarterback for the Denver Broncos, Tim Tebow. (According to the Post investigation, the current location of both items is unknown, but their purchase would constitute “self-dealing” if they remain in Trump’s possession.) A separate Post report found that a number of charities have no record of receiving donations the Trump Foundation claims to have given them.

Those discrepancies could become a major headache for Trump as the Empire State’s top prosecutor closes in. “My interest in this issue is really in my capacity as a regulator of nonprofits in New York state, and we have been concerned that the Trump Foundation may have engaged in some impropriety from that point of view,” Schneiderman, who is also prosecuting a lawsuit against Trump University, told CNN. The Trump campaign has dismissed the investigation as a partisan attack on the Republican nominee. The attorney general is a “partisan hack who has turned a blind eye to the Clinton Foundation for years and has endorsed Hillary Clinton,” Trump spokesperson Jason Miller said in a statement to BuzzFeed News. “This is nothing more than another left-wing hit job designed to distract from [Hillary Clinton’s] disastrous week.”