Hamdi was initially detained at Camp X-Ray at Guantanamo Bay, Cuba, along with eventually hundreds of other detainees. After officials learned that he was a U.S. citizen, Hamdi was transferred to military jails in Virginia and South Carolina. He continued to be detained without trial or legal representation.

Critics of his imprisonment claimed his civil rights were violated and that he was denied due process of law under the U.S. Constitution. They said his imprisonment without formal charges and denial of legal representation was illegal.

On June 28, 2004, in Hamdi v. Rumsfeld, the United States Supreme Court rejected the U.S. government's attempts to detain him indefinitely without trial. It said he had the right as a U.S. citizen to due process under habeas corpus: to confront his accusers and contest the grounds of detention in an impartial forum.

Among the surrendering Taliban forces, Afghan Arabs instigated a prison riot by detonating grenades they had concealed in their clothing, attacking Northern Alliance guards and seizing weapons. The prison uprising (known as the Battle of Qala-i-Jangi) was quashed after a three-day battle, which included heavy air support from U.S. AC-130 gunships and Black Hawk helicopters. One American (Johnny Micheal Spann) was killed and nine were injured, along with about 50 Northern Alliance soldiers. Between 200 and 400 Taliban prisoners were killed during the prison uprising. Two American prisoners, Hamdi and John Walker Lindh, were among the survivors.

Hamdi surrendered on the second day of fighting with a group of 73 surviving prisoners, after Coalition forces began flooding the underground basements where the remaining prisoners had hidden themselves. The United States officer Matthew Campbell approached him, demanding to know his origin, to which Hamdi replied "I was born in America... Baton Rouge, Louisiana, you know it, yeah?"[3]

Armed with a federal appeals court finding, the Bush administration refused Hamdi a lawyer until December 2003. The Pentagon announced then that Hamdi would be allowed access to legal counsel because his "intelligence value" had been exhausted and that giving him a lawyer would not harm national security. The announcement said the decision "should not be treated as a precedent" for other cases in which the government had designated U.S. citizens as "illegal enemy combatants". (José Padilla was then the only other U.S. citizen known to be imprisoned by the U.S. government as an "illegal enemy combatant").

After the decision, Frank Dunham, Hamdi’s lawyer, was finally able to meet with him in February 2004, more than two years after he was incarcerated. Under Pentagon guidelines, military observers attended and recorded their meetings. Dunham was not allowed to discuss with Hamdi the conditions of his confinement. By this time, he had been transferred to the Navy Brig in Charleston, South Carolina. After the initial meeting, Hamdi was allowed to have confidential discussions with his attorneys without military observers, or video or audio taping in the room.

Hamdi's father petitioned a federal court for Hamdi's rights to know the crime(s) he is accused of, and to receive a fair trial before imprisonment. In January 2004, the U.S. Supreme Court agreed to hear Hamdi's case (Hamdi v. Rumsfeld). It ruled that U.S. citizens were entitled to the basic rights of due process protections, and rejected the administration's claim that its war-making powers overrode constitutionalliberties.

Shortly after September 26, 2002, numerous senior government political appointees of the Bush Administration flew to see the conditions of detention for Mohammed al-Kahtani and two United States citizens then held as enemy combatants: Jose Padilla and Hamdi, as a result of legal challenges to the government's detention policy. The officials included the following:

They first flew to Camp Delta at Guantanamo to see the detainee al-Kahtani. They traveled next to Charleston, South Carolina, to view Padilla, held at the Naval Brig, and finally to Norfolk, Virginia, to view Hamdi, who was still being detained at that Naval brig.[11]

Upon seeing Hamdi curled up in fetal position in his cell, Goldsmith wrote, "it seemed unnecessary to hold a twenty-two year old foot soldier in a remote wing of a run-down prison in a tiny cell, isolated from almost all human contact, and with no access to a lawyer".[11][page needed]

In 2008, 91 pages of memos drafted in 2002 by officers at the Naval Consolidated Brig, Charleston, were made public under an FOIA petition. As reported by news outlets, the emails and memos described the officers' concerns for the sanity of the detainees due to the conditions of their confinements at the time, which included extended solitary confinement.[12][13] The memos indicate that officers were concerned at the time that the isolation and lack of stimuli was severely affecting the mental health of Hamdi, Padilla and Ali Saleh Kahlah al-Marri, another U.S. detainee.

Some government supporters argued that he had renounced his citizenship by virtue of enlisting in a foreign army. The Center for American Unity's brief argued that Hamdi was never a United States citizen, despite his birth in the United States. They argued that the policy of birthright citizenship is based on a flawed interpretation of the Fourteenth Amendment. [2]

Opponents of the U.S. government's detention without trial of U.S. citizens argued that the practice violated numerous constitutional safeguards and protections, as well as international conventions to which the United States is a signatory.

The U.S. Supreme Court opinion reasserted the rule of law in American society: "It is during our most challenging and uncertain moments that our nation's commitment to due process is most severely tested; and it is in those times that we must preserve our commitment at home to the principles for which we fight abroad." She added that the Court had "long since made clear that a state of war is not a blank check for the President when it comes to the rights of the nation's citizens".

The Supreme Court decision in Hamdi did not say that the government could not detain enemy combatants; it can detain enemy combatants for the length of hostilities. However, they must be given some sort of due process to determine their status as an enemy combatant. Although the United States Congress has recognized the Combatant Status Review Tribunal, the Pentagon's administrative procedure, the Supreme Court did not recognize it as due process.

The Hamdi decision reaffirmed the importance of separation of powers among the branches of the government, and, in particular, the role of the judiciary in reviewing actions of the executive branch infringing the rights of citizens even in emergencies. After the American Civil War, the Supreme Court prohibited military detention of noncombatant Americans without appeal or writ of habeas corpus as long as courts were functioning; the difference with this case being that the Supreme Court waited until the war was over to decide the case. A 1948 federal law condemned the detention of Japanese-Americans without legal recourse during World War II; it prohibited the imprisonment of American citizens except pursuant to an act of Congress.[14]

The Bush administration claimed that U.S. law does not apply to "illegal enemy combatants" and that it asserted the right to decide which U.S. citizens are "enemy combatants", ineligible for protection of their rights as enshrined in the United States Constitution.

Some legal scholars hailed the Supreme Court decision as the most important civil rights opinion in a half-century. They said that it was a dramatic reversal of the sweeping authority asserted by President Bush since the September 11, 2001 attacks.

Other scholars, however, believe the Supreme Court imprudently enhanced the Executive's power. The Supreme Court allowed the Executive to unilaterally determine that Hamdi was an enemy combatant. Further, the Supreme Court determined that the Executive was not required to provide any process when making the enemy combatant classification. The Supreme Court's only requirement was that a person classified as an enemy combatant must be provided with minimal due process. In effect, this allowed the Executive branch to lower the due process requirements on an American citizen, solely because the Executive branch claimed he was an enemy combatant.

Assessing the Hamdi decision, Habeas Corpus scholar Jared Perkins noted "By ratifying in part and ‘fixing’ (as Justice Scalia put it) in part the executive's action against Hamdi, the plurality participated with the executive in the usurpation of Congress's power to define the curtailment of the public's liberties. Removing this power (and, more importantly, this responsibility) from the representatives of the people seriously undermines those structural protections that Madison and others saw as the fundamental barrier to tyranny. "[15]

After agreeing to renounce his U.S. citizenship, Hamdi was released on October 9, 2004, without being charged and was deported to Saudi Arabia. He had to promise to comply with strict travel restrictions, which prohibited him from traveling to the United States, Israel, the West Bank and Gaza Strip, Syria, Iraq, Afghanistan, and Pakistan. Hamdi was required to notify Saudi Arabian officials if he ever plans to leave the kingdom. He had to promise not to sue the U.S. government over his captivity.

Although Hamdi renounced his U.S. citizenship, it is unclear whether the renunciation counts as "voluntary", as required by the Supreme Court's decisions in Afroyim v. Rusk and Vance v. Terrazas.U.S. Department of State regulations hold that formal renunciations are valid only if made before a U.S. consular or diplomatic officer outside the United States.

^ abcdTony Bartelme (2009-03-15). "Hanahan brig: The next Guantanamo?". Charleston Post and Courier. Archived from the original on 2009-03-16. Retrieved 2009-03-16. Hamdi's parents and others said he ran away from home in Saudi Arabia the summer of 2001 to prove he was a good Muslim and spent a few weeks at a Taliban camp in Afghanistan where he quickly became disillusioned. When he tried to return home, he was caught in the crossfire of American-led forces and captured in the basement of an Afghan warlord's fortress.