( BBC ) - A judge in the United States has blocked the US military from sending a detainee at Guantanamo Bay to Tunisia.
The judge ruled it would be a profound miscarriage of justice if Mohammed Abdul Rahman were sent to Tunisia where he says he would be tortured.
Human rights groups say the ruling marks the first direct intervention by a judge in such a case.
The ruling is temporary while the US Supreme Court decides whether inmates can mount challenge in civilian courts.
It means that for the time being the US Defence Department cannot transfer Mr Rahman to Tunisia, where he was convicted in his absence and where he alleged he would be tortured if sent back.
The government there denies his claims, but an official US report earlier this year said human rights abuses continued to take place in Tunisia.
A series of court challenges relating to Guantanamo Bay has led the Pentagon to change its rules and give prisoners greater access to legal representation.
There are about 340 detainees still being held at Guantanamo, according to the Pentagon.