Thirteen unarmed soldiers were killed and more than 30 others were injured in the 2009 attack
A US military firing squad has executed Nidal Hasan, who shot dead 13 unarmed US military personnel at the Fort Hood army base in Texas in 2009.
Hasan, a former army psychiatrist who also injured more than 30 others in the attack, is the first person to be executed by the US military since 1961.
His execution had been the subject of a years-long legal battle which nearly reached the Supreme Court this week, where his lawyers unsuccessfully appealed for it to be postponed.
The Trump administration said earlier this year that it would livestream the execution, but President Donald Trump cancelled the plan following widespread criticism.
Hasan was pronounced dead at 13:17 local time (19:17 GMT) on Saturday, according to an Army news release.
"The firing squad consisted of 14 Soldiers – four live firing squad members, nine blank firing squad members, and one officer in charge – and included one female," the Army said.
It added that all the troops had volunteered, and are members of the US Army Corrections Brigade.
According to military policy, Hasan was placed "into a seated execution chair" - he had been paralysed from the chest down after being shot during his attack - and charges against him were read for one final time before a hood was placed over his head.
Acting Secretary of the Army Adam Telle praised the troops who took part in the execution, posting on X: "Our Soldiers carried out this mission with professionalism and discipline."
The execution was witnessed by 55 victims and family members, according to the statement, as well as military personnel and two journalists.
Protesters opposing the death penalty near the base held signs saying "thou shall not kill" and "no military executions"
Only two members of the media were permitted to witness his death. The journalists, reporters for Reuters and Fox News, were chosen by Secretary of Defense Pete Hegseth.
In a briefing afterwards, the reporters said the execution took place at an outdoor area near a warehouse and that they were kept at a distance, unable to clearly see Hasan.
He wearing a burgundy outfit, one of the reporters said, and from their limited viewpoint they were unable to see any of the other witnesses and never saw any cameras present.
Hasan was strapped down, and both journalists said he made no sounds and didn't speak during the brief process.
Ahead of the execution, few details were released, including where on the base the execution would take place.
A heavy security presence was seen at the sprawling Texas base, including drones flying overhead.
The execution, the first by firing squad in the US military since 1945, was approved by President Donald Trump in October.
Trump has previously described Hasan as "one of the most evil killers in modern times".
Once a common form of execution, especially in the military, death by firing squad is a rare occurrence in the US. It is legal in only five states - Idaho, Mississippi, Oklahoma, South Carolina and Utah.
Hasan, a former US army psychiatrist, admitted to the mass shooting at the Texas base but has repeatedly fought against his death sentence.
In 2013 he was convicted on 45 counts of murder and attempted murder. He has never shown any remorse for his crimes.
After exhausting his appeals in military courts, he appealed the execution in federal court in November, arguing that the US troops were legitimate targets and that members of the Trump administration engaged in "unlawful command influence" over his case.
On Wednesday, the appeals court said the argument that Hasan was allegedly defending Taliban fighters in Afghanistan was "patently frivolous".
The court also said public remarks by Trump and Hegseth fell short of showing that either had improperly influenced the arrangements for his execution.
On Saturday, minutes before the execution, the Supreme Court rejected his final request for a stay, clearing the way for the sentence to be carried out.
Correction: An earlier version of this story incorrectly said those shot in the attack were all soldiers. Hasan fatally shot 13 unarmed US military personnel and injured 32 others.
'There's no way to prepare': The Americans who have witnessed firing squad executions
Fort Hood attacker's execution set to go ahead after Supreme Court refused to grant delay