Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A man who spent close to 25 years on California's death row was freed Thursday after his conviction in the rape and killing of his girlfriend's nearly 2-year-old daughter was overturned.

Vicente Benavides, 68, was released from San Quentin State Prison, according to the California Department of Corrections and Rehabilitation.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Benavides, who had been on death row since June 1993, was freed after the state Supreme Court ruled last month that false medical testimony was presented at his trial.

Kern County District Attorney Lisa Green said earlier this week that she wouldn't retry Benavides for first-degree murder and that without the medical testimony, a lesser conviction would be nearly impossible.

"Upon an objective review of the facts, there is insufficient evidence to establish guilt beyond a reasonable doubt," she said in a statement.

Benavides was babysitting his girlfriend's daughter, Consuelo Verdugo, in Delano on Nov. 17, 1991, while her mother was at work. Benavides told police that he had lost track of the girl and later found her outdoors, vomiting. He and the girl's mother took her to an emergency room and she died a week later.

This June 8, 2007, photo provided by the California Department of Corrections and Rehabilitation shows death row inmate Vicente Benavides Figueroa. California Department of Corrections and Rehabilitation via AP

A forensic pathologist concluded that the girl died from anal injuries from being sodomized, and several doctors testified that the girl's injuries were caused by sexual assault.

But nearly all later recanted, saying they hadn't seen her full medical records that indicated there was no evidence of sexual assault when the girl was first hospitalized.

They also said her genital and other injuries may have been caused by her medical treatment and some said the purported cause of death was "anatomically impossible," according to the state Supreme Court's ruling.