Northern California residents on Tuesday voted to recall the judge who sentenced a former Stanford University swimmer convicted of sexual assault to a short jail sentence instead of prison.

Voters opted to oust Santa Clara County Judge Aaron Persky. He was targeted for recall in June 2016 shortly after he sentenced Brock Turner to six months in jail for sexually assaulting a young woman outside a fraternity house on campus. Prosecutors argued for a 7-year prison sentence.

Turner was instead sentenced to six months in jail for sexually assaulting a young woman outside a fraternity house on campus. Critics say Turner's sentece was too lenient.

Persky maintained that he had followed a recommendation from the county probation department. The California Commission on Judicial Performance ruled that the case was handled legally.

The case gained national prominence after the victim read a statement in court before Turner's sentence. The statement made the rounds online and was read on the floor of the U.S. Capitol during a congressional session.

The recall election was viewed as one of the first electoral tests of the #MeToo movement's political strength.

Michele Dauber, a Stanford University professor who led the recall effort, said the election "expresses clearly that sexual assault, sexual violence is serious and it has to be taken seriously by elected officials.”

It's a historical moment when women across all sectors of society are standing up saying enough is enough. — Michele Dauber, Stanford law professor

She added: "It's a historical moment when women across all sectors of society are standing up saying enough is enough."

Persky's supporters said his removal set a dangerous precedent.

LaDoris Cordell, a former Santa Clara County judge who led a counter campaign against the recall, called the decision "a sad day for the California judiciary."

Cordell added, that the vote implies if judges don't concede to popular opinion, "they can lose their job."

Persky has served on the court since 2003. He declined The Associated Press' request for comment late Tuesday.

Assistant District Attorney Cindy Hendrickson will serve the last four years of Persky's term, the San Francisco Chronicle reported.

The Associated Press contributed to this report.