A man who spent 17 years in prison has received a $1.1 million settlement after he was later found not guilty.

CNN reports that Richard Anthony Jones was wrongfully sentenced to prison for a crime committed by his doppelganger (a look-alike).

READ ALSO: Man dies during sex competition after finishing the seventh round

However, upon being released, Jones filed a petition asking the state to pay him $1.1 million and to officially proclaim his innocence.

According to Kansas officials, the lawsuit was resolved under a new mistaken-conviction law.

Fortunately, the petition was upheld, with a $1.1 million settlement being agreed for the wrongful conviction of Jones.

Richard Anthony Jones with his family (CNN)

In a statement, Kansas Attorney General, Derek Schmidt, said: "We are committed to faithfully administering the new mistaken-conviction statute the legislature enacted.

"In this case, it was possible on the existing record to resolve all issues quickly, satisfy all of the statute's requirements, and agree to this outcome so Mr. Jones can receive the benefits to which he is entitled by law because he was mistakenly convicted."

READ ALSO: Shatta Wale attacks Sarkodie again; calls him a ‘foolish boy’

Jones was convicted in the 1999 aggravated robbery of a woman in a Walmart parking lot.

Jones had been at a birthday party where he was seen by several people, however, he was still arrested for the crime because he looked almost exactly like the man who eventually became the suspect.

Despite many people testifying that he was at the birthday party at the time of the robbery, the jury still went on to convict him on the aggravated robbery charge and sentenced him to 19 years in prison due to his past criminal record.

However, the real suspect was later arrested, allowing for Jones to be released from prison in 2017.