Nidal Hasan, a former US army psychiatrist, was executed by firing squad on Wednesday inside Fort Hood military base in Texas. The army announced that he was declared dead at 13:17 local time, following a "lawful execution by firing squad".

Hasan killed 13 people and wounded 32 others at the base in 2009. It was the first execution by military firing squad in the United States in 81 years.

Fourteen soldiers took part in the firing squad, including one woman, and all were volunteers, the army said. Of the 14 soldiers, only four had live ammunition, while the remaining nine fired blanks. The soldiers were armed with M110 Sass rifles. Hasan was seated in the execution chair because he had been paralysed from the waist down, and his head was covered with a hood. Before the execution order was handed to the shooters, Hasan heard the charges against himself.

The execution was attended by 55 victims' family members and two media representatives. It was the first time since 1965 that the military had executed a service member sentenced to death by a military court. The last person to face American military firing squad was Eddie Slovik, a 24-year-old deserter from the Second World War, in a French village in 1945.

Hasan carried out the attack on 5 November 2009, using a pistol fitted with a laser sight, shooting unarmed soldiers at a pre-deployment readiness centre. At the time of the attack he was a military psychiatrist, just days away from being deployed to Afghanistan. Most of the dead and wounded were active-duty soldiers. It was the deadliest attack inside a US military base in history.

The execution was approved by President Donald Trump in October and was originally scheduled for earlier that week, but was postponed while courts considered Hasan's legal challenges. On 30 November a federal judge halted the execution, ruling that Hasan had the right to a federal habeas review of his death sentence, but that decision was overturned by the 10th Circuit Court of Appeals based in Denver. The US Supreme Court allowed the execution through one-line orders issued on Friday and Saturday.

Hasan's legal team filed an emergency request to postpone the execution to a federal court in Kansas, but a federal judge rejected it on Saturday morning, stating that Hasan had not shown a "substantial probability of success on any of the grounds in his petition". Laurie Levenson, a professor at the Loyola Law School, told the BBC that the move was a "final desperate attempt". The American Civil Liberties Union (ACLU) represented Hasan, arguing that he had the right to a federal habeas review before execution. Attorney General D. John Sauer argued in a filing to the Supreme Court that postponing the execution would delay justice for victims' families, adding that granting relief to military prisoners after sentencing "has always been strictly limited".

The ACLU condemned the Supreme Court's decision. ACLU Executive Director Anthony D. Romero said the Supreme Court had "dealt a devastating blow to the rule of law and the integrity of our judicial system". "A public execution by firing squad - and the original plans to broadcast it live - take us back to the darkest chapters of our history," Romero said.

Execution by firing squad is lawful in only five states: Idaho, Mississippi, Oklahoma, South Carolina and Utah. In October, Defence Secretary Pete Hegseth announced plans to broadcast Hasan's execution live, but the Trump administration later dropped the idea following widespread criticism. Trump had earlier described Hasan as "one of the most evil murderers of modern times".

Hasan admitted to the mass shooting at the Texas base, but consistently fought against the death sentence. After exhausting his appeals in military courts, he appealed to a federal court in November, arguing that American soldiers were legitimate targets and that members of the Trump administration had exerted "unlawful command influence" in his case. On Wednesday, the appeals court rejected the argument that Hasan had allegedly been defending Taliban fighters in Afghanistan as "clearly frivolous". The court also found that public statements by Trump and Hegseth did not show that either of them had improperly influenced preparations for his execution.

Before the execution, opponents of the death penalty gathered outside the gates of Fort Hood. Abraham Bonowitz, executive director of the organisation Death Penalty Action, had been camping in front of the base for the previous several days. Bonowitz expressed concern that the firing squad execution could serve as a form of martyrdom and inspire others to similar violence.