Before he entered politics, President Trump donated $6,000 to Kamala D. Harris’s reelection campaign while she was California attorney general, campaign finance records show.

Trump gave $5,000 to Harris’s campaign in September 2011 and $1,000 in February 2013. His daughter Ivanka Trump gave Harris’s campaign $2,000 in 2014, records show.

Harris, now the running mate of presumptive Democratic presidential nominee Joe Biden, was California’s attorney general from 2011 until 2016 — when she was elected to the U.S. Senate. In 2015, the year Trump began his campaign for president, Harris said she gave Trump’s donations to charity.

In the past, Harris has faced questions about whether Trump’s donations were related to the legal troubles of Trump University, the future president’s ill-fated school. Former students have said that Trump’s school misled them into spending thousands of dollars, on the false promise that they would receive a life-changing lesson in real estate. Instead, they said, the classes offered little of value, and instructors spent most of their time pitching other Trump University classes to the students.

At the time that Trump made the donations to Harris, Trump University was already shut down and facing a class-action lawsuit from former students in California as well as an investigation by the New York attorney general. While Harris was attorney general in California, her office took no action against Trump University.

On Wednesday, a spokeswoman for Biden’s campaign said that Harris did not solicit the donations from Trump and that they had no effect on how Harris’s office handled allegations against Trump University.

Biden spokeswoman Sabrina Singh said that at the time Trump made the donations, Harris’s office was not investigating Trump University. She said that Harris’s predecessor had looked into the school before Harris took office and had decided against pursuing a case. Then, in 2016, Singh said, Harris’s office examined the question again and likewise decided not to pursue a formal investigation of Trump University — which by then had been closed for six years.

President Trump on Aug. 12 said he was surprised that Democratic presidential nominee Joe Biden selected Sen. Kamala D. Harris (D-Calif.) as his running mate. (The Washington Post)

The office of the current California attorney general, Xavier Becerra (D), did not respond to questions about Trump University on Wednesday.

In 2013, Trump also gave $25,000 to then-Florida Attorney General Pamela Bondi (R), around the time that her office was considering joining a lawsuit against Trump University. Bondi’s office did not join the lawsuit, but Bondi has said that decision was not influenced by Trump’s gift.

In late 2016, after Trump won the presidential election, Trump University agreed to pay $25 million to settle the lawsuits filed by Schneiderman and the ­class-action plaintiffs.

At one time, it was not unusual for Trump to donate to Democratic candidates. As a businessman in New York, he had donated to both of the Democrats he would later face in presidential elections: Hillary Clinton (N.Y.) and Biden. The gift to Biden’s campaign was in 2001, for $1,000.

But after about 2010, campaign finance records show, Trump began donating almost exclusively to Republicans. That coincided with Trump’s rise in GOP politics, as a leading booster of the false conspiracy theory that President Barack Obama was not born in the United States.

So why did Trump give to Harris, when he had largely stopped giving to other Democrats?

In the past, Trump has said he viewed the contribution to Harris as a favor for Schneiderman, who was then the New York attorney general. In a 2013 affidavit, Trump said that a political figure close to Schneiderman “asked my daughter Ivanka if she would arrange for me to make a contribution to a fundraising event sponsored by Schneiderman for newly elected California Attorney General Kamala D. Harris.”

Trump said he made a $5,000 donation. He did not attend the event, but Ivanka Trump and other Trump Organization executives did, he said in the affidavit. Trump later submitted the affidavit in a court filing.

Schneiderman resigned in 2018 after reports that he had physically abused women. He declined to comment through a spokeswoman on Wednesday.

A spokeswoman for Trump’s 2020 campaign, Katrina Pierson, said in an interview with PBS that Trump’s donation to Harris — whose parents were immigrants from India and Jamaica — shows the president is not racist.

“I will note that Kamala Harris is a black woman & he donated to her campaign so I hope we can squash this racism argument now,” Pierson said, according to a tweet from “PBS NewsHour” correspondent Yamiche Alcindor.