Updated

The twin brother of an Illinois man who was found guilty of fatally shooting a rival gang member years ago confessed to the killing himself — but his allegedly innocent brother will not be granted a retrial.

Kevin Dugar has been in custody since 2003, and has been serving a 54-year sentence since 2005 for his alleged role in the attack, which left one person dead and another wounded on Chicago’s North Side.

Dugar’s twin brother, Karl Smith, claimed in September 2016 that he committed the murder.

FLASHBACK: ILLINOIS MAN SAYS HE, NOT HIS TWIN BROTHER, COMMITTED MURDER

County prosecutors at the time questioned Smith’s admission. They told a judge they believed Smith came forward only after an appeals court upheld his own conviction for attempted murder.

Smith is serving a 99-year prison sentence for his part in a home invasion and armed robbery in 2008 in which a 6-year-old boy was shot in the head.

The identical twins, according to prosecutors, would often pretend to be each other in order to confuse people.

MORE ON VIOLENCE IN CHICAGO

The judge sided with prosecutors and said he didn’t find Smith’s admission credible and refused a motion for a retrial for Dugar, the Chicago Tribune reported.

The man who was wounded in the shooting, Ronnie Bolden, identified the gunman as "Twin" — the street name used by both Smith and Dugar.

Bolden testified at trial that he didn't identify Dugar as the gunman for more than a month after the shooting because he planned to settle the matter "on the street," according to Dugar's petition for a new trial.

HUNT FOR CHICAGO MASKED GUNMAN WANTED FOR 'EXECUTION-STYLE' SHOOTINGS NOW HAS $18,000 REWARD

A jury convicted Dugar in 2005 for the gang-related attack. He was sentenced to 54 years in prison.

Dugar is slated for release in 2056 when he will be in his late 70s. He wept following Tuesday's ruling.

The Associated Press contributed to this report.