EDWARD LEE ELMORE turned 53 in January. For more than half his life, the soft-spoken African-American who doesn’t understand the concept of north, south, east and west, or of summer, fall, winter and spring, was in a South Carolina prison, most of it on death row.

On Friday, Mr. Elmore walked out of the courthouse in Greenwood, S.C., a free man, as part of an agreement with the state whereby he denied any involvement in the crime but pleaded guilty in exchange for his freedom. This was his 11,000th day in jail.

Mr. Elmore was convicted in 1982 for the sexual assault and murder of an elderly white widow in Greenwood. His trial lasted only eight days, including two spent picking the jury. The state concealed evidence that strongly pointed to Mr. Elmore’s innocence and introduced damning evidence that appears to have been planted by the police. For three decades lawyers for Mr. Elmore, who were convinced of his innocence, sought to get him a fair trial.