A German court on Thursday found retired Ohio autoworker John Demjanjuk guilty of aiding the murder of 27,900 Jews at the Nazi death camp Sobibor.

The Munich court found the 91-year-old guilty of being an accessory to mass murder as a guard at Sobibor camp in Poland during World War Two, and sentenced him to five years in jail.

However later Thursday, the court decided to release Demjanjuk from jail, pending an appeal,  because of his advanced age.

"The accused is to be released," Judge Ralph Alt told the Munich court on Thursday after handing down a guilty verdict and sentencing the Ukraine-born Demjanjuk to five years in jail.

Demjanjuk had been exonerated in a separate Holocaust trial two decades ago in Israel, where he was initially sentenced to death for being the notorious "Ivan the Terrible" camp guard at Treblinka in Poland. The ruling was overturned by Israel's supreme court after new evidence exonerated him.

Holocaust survivors welcomed the guilty verdict, as did the Nazi-hunting Simon Wiesenthal Center, where Rabbi Marvin Hier said: "John Demjanjuk's Nazi past finally caught up with him."

"Humanity owed this to the memory of the tortured and the dead," Elan Steinberg of the American Gathering of Holocaust Survivors and their Descendants said, adding his "cynical
manipulation of the legal system has at last been ended".

Ukraine-born Demjanjuk, who was once top of the Simon Wiesenthal Center's list of most wanted Nazi war criminals, said he was drafted into the Soviet army in 1941 then taken prisoner of war by the Germans.

Demjanjuk attended the 18-month court proceedings in Munich - birthplace of Adolf Hitler's Nazi movement -- in a wheelchair and sometimes lying down, with his family trying to argue that he was too frail to stand trial.

His son, John Demjanjuk Jr., said in an e-mail ahead of the verdict that his father was a victim of the Nazis and of post-war Germany.

"While those who refuse to accept that reality may take satisfaction from this event, nothing the Munich court can do will atone for the suffering Germany has perpetrated upon him to this day," he said.

Prosecutors had faced several hurdles in proving Demjanjuk's guilt, with no surviving witnesses to his crimes and heavy reliance on wartime documents, namely a Nazi ID card that defense attorneys said was a fake made by the Soviets.

Guards at Nazi death camps like Sobibor were essential to the mass killing of Jews because extermination was the focus of such camps, prosecutors said. Some 250,000 Jews were killed at Sobibor, according to the Wiesenthal Center.

Defense attorney Ulrich Busch told the Munich court on Wednesday that even if Demjanjuk did become a prison guard, he did so only because as a prisoner of war he would have either been shot by the Nazis or died of starvation.

Demjanjuk emigrated to the United States in the early 1950s and became a naturalized citizen in 1958, working as an engine mechanic in Ohio.