Incumbent District Attorney Pat Lykos conceded to former judge Mike Anderson in the race for the Republican nomination for her seat.
With votes from all precincts counted Tuesday, Anderson defeated Lykos with 89,237 votes compared to her 52,458 votes.
Shortly before 11 p.m., Lykos admitted that she lost the race.
"Of course, I'm disappointed in the results," she said. "I'm district attorney until the end of the year."
Lykos, who was elected in 2008, has made headlines recently after a former Houston police officer was found not guilty of beating a teenage burglary suspect.
Community activists expressed their disappointment that the jury in the trial was all white. The former officer was also white and the burglary suspect was black.
Much of Anderson's campaign focused on what he called low morale in the District Attorney's Office. Anderson said he thinks that's what tipped the race in his favor.
"I think the fact that people around the courthouse were very unhappy with what was going on over there at the district attorney's office, they mobilized," Anderson said. "They told friends and neighbors and they had campaigns going. They called 25 people, claimed 25 people to vote and make sure they vote. Police officers were very upset. So, there was a large foundation that we discovered once we finally got into the race that, I think, turned the tide."
Lykos said her campaign did not rebut "misinformation" because she focused on doing her job.
"I do have some regrets, with respect to the campaign," Lykos said. "I wasn't a politician. I continued running the office. All my energy went into the office. I basically ignored the campaign and I let my supporters down."
There were several other high-profile local races on the ballot.
In the Democratic primary for state Representative District 131 race, incumbent Alma Allen got 59 percent of the vote to beat Houston city council member Wanda Adams. Adams has reached her term limit for city council.
And in District 146, incumbent Borris Miles once again faced, and defeated, former state Rep. Al Edwards. Miles got 57 percent of the vote to Edwards' 43 percent. It's the fourth time that both names have been on the same ballot. Miles won the seat in 2006. Edwards took it in 2008 and Miles won in 2010.
Voters in Harris County Precinct 4 picked candidates to replace former commissioner Jerry Eversole. He was forced to give up his seat as part of a plea deal when he pled guilty to lying to a federal investigator. He had been charged with conspiracy, accepting a bribe and making false statements on tax returns in 2003 and 2004. All of those charges were dismissed.
Jack Cagle was appointed to temporarily hold the Precinct 4 commissioner's seat. Cagle ran for the Republican nomination and won it, defeating, Robert M. Cadena and Buck Buchanan. Cagle will battle the winner of the Democratic primary, Sean Hammerle, in November.