Citing what she called President Donald Trump's racist ideology, Elsa Alcala, a retired Republican judge on the state's highest criminal court, announced on Facebook that she can no longer support the GOP and has left the party.

"It has taken me years to say this publicly but here I go. President Trump is the worst president in the history of this country," Alcala wrote last week. "Even accepting that Trump has had some successes — and I believe these are few — at his core, his ideology is racism. To me, nothing positive about him could absolve him of his rotten core."

Appointed to the Texas Court of Criminal Appeals by Gov. Rick Perry in 2011, Alcala spent 20 years as a GOP judge, also serving in a trial court and intermediate appeals court. She retired at the end of 2018.

She was one of two Latinas to serve in recent years on the state's two highest courts, the other being Justice Eva Guzman, a Republican currently on the Texas Supreme Court.

"The current Republican Party supports Trump, so I cannot support that party in Texas or nationally," Alcala wrote on Facebook. "The past Republican administrations were not Trump-like — they wanted an inclusive party — and I appreciate their past support of me, but that is no more."

Alcala said Trump's behavior, including a recent tweet suggesting that four Democratic congresswomen of color should "go back" to the countries they came from, combined with state and national Republican Party support for the president, weighed on her conscience.

"Every day with the Republican Party seemed worse than the day before. Trump speaks about brown people like me as lesser beings," Alcala told the American-Statesman. "It’s cliche to say, but the Republican Party left me."

Trump, Alcala added, seeks to exclude "people who look like me."

"I thought that maybe Texas state politics at the Legislature might be better than the national Republican politics, but it was more of the same," she said.

Texas Republicans, who have been far more likely to celebrate Democratic defections to the GOP for more than two decades, found themselves on defense after losing one of their own.

“We thank Judge Alcala for her service, and we are sorry that she has chosen to no longer support the party that supported her, her colleagues and her successors," said James Dickey, chairman of the Republican Party of Texas.

The GOP, Dickey said, can ensure a bright future for Texas.

"Republican policies work — as proven by the booming Texas and national economies. Democrats are promoting extremist schemes with the inevitable tragic consequences that have destroyed every socialist economy ever put into place," he said.

Gilberto Hinojosa, chairman of the Texas Democratic Party, thanked Alcala for "speaking out against Trump Republican racism."

"The decision by Judge Alcala is proof Texas Democrats are fighting for a fair shot for all and represent Texas’ diverse new majority," Hinojosa said.

During her time on the Court of Criminal Appeals, Alcala had a reputation for bluntly worded dissenting opinions, often challenging rulings that she believed did not protect the rights of the accused.

Alcala also wrote a 2016 opinion that pushed for a closer look at the constitutional issues behind capital punishment, arguing that death row inmates had raised compelling arguments that should be addressed, including whether confinement in a 60-square-foot cell was cruel or whether the death penalty is unconstitutional because it disproportionately affects minorities.

On Facebook, Alcala said she will vote in the 2020 Democratic primary, adding that "any of the viable Democratic presidential candidates are superior to the status quo."

"I hope Democrats rise to the occasion and put forth some very qualified candidates and that every polling station will be overwhelmed with voters," she wrote.

"And don’t tell me to go back where I came from. My relatives have been in this Texas area since it was before the USA and I was born in the USA," Alcala wrote.