A former Fort Worth police officer who served 21 years after being convicted of raping a 13-year-old girl has been found not guilty in a new trial.

Brian Franklin (via Facebook)

Brian Franklin, 57, was sentenced to life in prison after his conviction in 1995. It took a jury just over an hour to find him not guilty on Friday, KTVT-TV (Channel 11) reported.

The Texas Court of Criminal Appeals ruled in April that his conviction should be thrown out because his accuser later admitted lying during his trial. The court said that led other witnesses to give false testimony.

The woman, now in her 30s, testified in 2014 that her stepfather repeatedly raped her when she was a child — starting before she accused Franklin of rape and continuing through his trial.

But during Franklin's trial she testified that she had never previously had sexual contact. There was no DNA to tie Franklin to the girl, and the prosecution's case hinged on the fact that injuries to the girl's genitals couldn't have been cause by anyone other than Franklin.

"I knew it was going to come," Franklin said of the verdict in an interview with KDFW-TV (Channel 4). "I wasn't surprised."

His lawyer, Dick DeGuerin, wants the charge against Franklin expunged from the record and plans to file a declaration of innocence. He also intends to sue for damages.

Franklin told KDFW that he's angry about what happened to him but relieved by the outcome of his new trial.

"I'm not the first and I probably won't be the last," he said. "When the system makes mistakes, they need to admit it."