A longtime staffer for Sen. Kamala Harris resigned Wednesday following media inquiries about a $400,000 harassment and retaliation settlement he agreed to when he was the California Democrat's aide at the state's Department of Justice.

Larry Wallace, who was serving Harris as a senior adviser in Sacramento, had been accused of "gender harassment" by his former executive assistant when he was Harris' Division of Law Enforcement director, according to the Sacramento Bee.

Danielle Hartley's lawsuit was filed in December 2016, shortly after Harris, a 2020 Democratic presidential favorite, had been elected to become California's next senator. The matter was settled in May 2017 by Harris' successor as attorney general, Xavier Becerra.

“We were unaware of this issue and take accusations of harassment extremely seriously. This evening, Mr. Wallace offered his resignation to the senator and she accepted it,” Harris spokeswoman Lily Adams told the Bee Wednesday in an email.

Wallace allegedly had made Hartley replenish the paper or ink in his printer, which he placed underneath his desk, despite her complaints. Hartley informed her superior about Wallace's behavior, but was later told to "quit her job and seek employment elsewhere.”

In the settlement, the California Justice Department denied Hartley's allegations.

Questions regarding the suit follow Harris becoming a prominent advocate for women's rights in the #MeToo era, including grilling Supreme Court Justice Brett Kavanaugh on unproven accusations of sexual misconduct during his nomination hearings. Wallace's resignation over the old legal action also comes after Harris told reporters she would make a decision in relation to a potential White House bid this holiday season.