For the first time in California history, a county sheriff has been removed from office.

The San Mateo County Board of Supervisors voted unanimously to remove Sheriff Christina Corpus from office Tuesday, nearly a year after a damning report from a retired county judge found that she likely violated the county’s policy on nepotism and conflicting relationships.

Removing her wasn’t as simple as firing someone.

It took a successful San Mateo County ballot measure that asked voters to choose whether to amend the county charter to grant the board that power.

“Today is the end of a tragic, destructive and grossly expensive chapter in San Mateo County history,” said Supervisor Jackie Speier, a former member of Congress. “I had high hopes for Sheriff Corpus. I voted for her. I held a town hall with her on crime prevention. She had great ideas to modernize the office.

“So it’s tragic to see her time as sheriff come down to this.”

Corpus has two weeks to appeal her removal. San Mateo County Attorney John Nibbelin said the county’s undersheriff will serve as sheriff.

Corpus, appearing in a blue suit at the board meeting, argued adamantly against her removal. She said she was elected as a reformer, and the changes she tried to push through the sheriff’s office were met with, at first, resistance then outright hostility when the old guard in power in San Mateo County began working to undermine her.

“I have sacrificed my peace, my marriage for this job,” Corpus said.

“If I lose my position today, I will walk out with my head held very high. I never bowed to intimidation.

“You may remove me from office, but you will not erase the truth.”

Corpus’ legal team, which includes a one-time member of President Barack Obama’s Cabinet, made a half-hour presentation arguing against the legality of her removal. “Culture change is hard,” said Tom Perez, who was labor secretary under Obama and former chair of the Democratic National Committee.

“From Day One, there were folks who didn’t want her to succeed.”

The county of San Mateo, one of the wealthiest in the country, has been paying Corpus’ legal bills, but she will be responsible for her legal costs after being removed.

Last week, retired Superior Court Judge James Emerson found cause to remove Corpus after a two-week trial that included a cascade of allegations portraying a chaotic picture of her two-plus years in office.

Emerson found that Corpus had “a close personal relationship outside the boundaries of a professional working relationship” with a subordinate, unlawfully ordered the arrest of the president of the sheriff’s deputies’ union and retaliated against a captain who refused to conduct the union president’s arrest because he believed it violated state law.

About 25 people spoke during the board’s public comment period.

Some came to praise Corpus, others to bury her, none more so than the daughter of the sheriff’s deputies’ union president, whom Corpus ordered arrested last year — something Judge Emerson found was retaliatory.

The sheriff’s office alleged that the union president, Carlos Tapia, was doing union business on company time and falsified the record of his working hours.

This story was originally published by CalMatters and distributed through a partnership with The Associated Press.