Khalid Sheikh Mohammed

At the time, as America reeled from the horror of the 11 September attacks, the idea seemed perfect: a remote and instantly available high-security prison for the country's most implacable enemies – "the worst of the worst", as the Pentagon boss Donald Rumsfeld called them, when the place opened for business in January 2002.


Technically it wasn't on US soil, so inmates would not enjoy the tiresome protections of either the American legal system or those "quaint" Geneva conventions. It was conveniently close to the mainland, but hidden within a military base, so prying eyes could be kept away.


But Guantanamo Bay hasn't quite worked out like that. Instead, it has proved a nightmare.


Last January, three days after taking office, Barack Obama signed an order to close Guantanamo within a year, but found himself facing the same realities as his predecessor. The deadline will not be met, and last week Gregory Craig, the White House counsel closely involved in the deliberations, paid for the delay with his job. But the 44th president's Guantanamo travails are far from over.


From the outset the US authorities faced the problem of what do with the captives. So military tribunals were set up, but their loose standards of evidence and the limited representation permitted to defendants served only to draw more criticism.


The Obama White House then sought to amend the tribunals' mechanism, but with limited success. Now it has gone a giant step further, with the stunning news that Khalid Sheikh Mohammed and four other prime organisers of 9/11 will be taken to New York, the scene of their alleged crime, where they will be tried in a civilian federal court a few blocks from Ground Zero, where 2,605 people died.


There could be no clearer proof that Obama means to get rid of the shameful limbo-land that is Guantanamo Bay. It is the boldest decision yet taken by this president – but could also turn out his most foolish.


If the trials proceed smoothly, of course, they will be a belated vindication of the American legal system. They will make a political point, too, further distancing this administration from the Bush/­Cheney creed of government by executive fiat. But if they do not proceed smoothly?


The trial of Zacarias Moussaoui, in a federal court in Virginia, gives a taste of the potential pitfalls. Moussaoui, the so-called "20th hijacker", pleaded guilty to being party to an al-Qaeda conspiracy to crash planes into buildings and remains the only person thus far convicted in connection with 9/11. Moussaoui's histrionics, and his long insistence on conducting his own defence, often turned this trial of a comparatively small fish in the war on terror into a circus that lasted four years, from 2002 to 2006. In the end, civilian justice worked, but barely.


The trial of Mohammed and his accomplices (presumably we must now call them "alleged accomplices") is of an entirely different magnitude. The possibilities of legal snarl-ups are endless. For starters, the five may seek a change of venue, on the grounds a fair trial is impossible in New York City. Then there's the torture factor.


During his interrogation in CIA-run "ghost camps", Mohammed was subjected no fewer than 183 times to waterboarding, a procedure that Eric Holder, the US Attorney-General who announced the New York trial last Friday, has publicly declared to be torture. What if Mohammed, the alleged mastermind of the entire plot, withdraws his confession?


In the depths of the Second World War, Churchill used to tell colleagues that when the Nazi leaders were caught, they should be put up against a wall and shot. War crimes trials, he claimed, would be a farce. In fact, Nuremberg was a cathartic exercise, showing that the law could cope with such gigantic crimes. New York could yet be another Nuremberg. If not, however, even Obama will have to admit Churchill had a point.