Pakistan’s Supreme Court on Thursday ordered the release of a Pakistani man convicted and later acquitted in the gruesome beheading of American journalist Daniel Pearl in 2002.

The court also dismissed an appeal of Ahmad Saeed Omar Sheikh's acquittal by Pearl’s family and the Pakistani government.

Sheikh has been on death row since his conviction in the death of Pearl in 2002. His attorney said Sheikh "should not have spent one day in jail."

Attorney Mehmood A. Sheikh, no relation, said the court also ordered the release of three other Pakistanis who had been sentenced to life in prison for their part in Pearl’s kidnapping and death.

US 'READY' TO TRY MAN CONVICTED IN DANIEL PEARL'S MURDER, ACTING AG ROSEN SAYS

FILE - In this March 29, 2002 file photo, Ahmed Omar Saeed Sheikh, a British-Pakistani man accused in the 2002 killing of the American Wall Street Journal reporter Daniel Pearl appears at the court in Karachi, Pakistan. In a dramatic turn of events, Sheikh, a man convicted and later acquitted in the 2002 murder of Pearl admitted a "minor" role in his death, upending 18 years of denials, the Pearl family lawyer said Wednesday, Jan. 27, 2021. (AP Photo/Zia Mazhar, File)

FILE - In this March 29, 2002 file photo, Ahmed Omar Saeed Sheikh, a British-Pakistani man accused in the 2002 killing of the American Wall Street Journal reporter Daniel Pearl appears at the court in Karachi, Pakistan. In a dramatic turn of events, Sheikh, a man convicted and later acquitted in the 2002 murder of Pearl admitted a "minor" role in his death, upending 18 years of denials, the Pearl family lawyer said Wednesday, Jan. 27, 2021. (AP Photo/Zia Mazhar, File)

"Today’s decision is a complete travesty of justice and the release of these killers puts in danger journalists everywhere and the people of Pakistan," the Pearl family said in a statement released by their lawyer, Faisal Siddiqi.

The three-judge Supreme Court ruled 2 to 1 in favor of upholding Sheikh's acquittal and ordered him released, said Siddiqi.

Washington previously said it would demand Sheikh be extradited to the United States to be tried there. There was no immediate reaction from the U.S. Embassy to the court order upholding the appeal.

"We urge the U.S. government to take all necessary actions under the law to correct this injustice. We also hope that the Pakistani authorities will take all necessary steps to rectify this travesty of justice," the Pearl family said.

FILE - In this April 15, 2007, file photo, Dr. Judea Pearl, father of American journalist Daniel Pearl, who was killed by terrorists in 2002, speaks in Miami Beach, Fla. Pakistan's Supreme Court on Thursday, Jan. 28, 2021, ordered the release of Ahmad Saeed Omar Sheikh who was convicted and later acquitted in the gruesome beheading of American journalist Pearl in 2002. The court also dismissed an appeal of Sheikh's acquittal by Pearl's family. (AP Photo/Wilfredo Lee, File)

FILE - In this April 15, 2007, file photo, Dr. Judea Pearl, father of American journalist Daniel Pearl, who was killed by terrorists in 2002, speaks in Miami Beach, Fla. Pakistan's Supreme Court on Thursday, Jan. 28, 2021, ordered the release of Ahmad Saeed Omar Sheikh who was convicted and later acquitted in the gruesome beheading of American journalist Pearl in 2002. The court also dismissed an appeal of Sheikh's acquittal by Pearl's family. (AP Photo/Wilfredo Lee, File)

MAN WHO BEHEADED US JOURNALIST DANIEL PEARL TO BE FREED FROM PAKISTANI PRISON 

Siddiqi, the Pearl family lawyer, said the only legal avenue following the court's decision upholding Sheikh's acquittal would be to ask for a review of the court decision. However, he said the review would be conducted by the same court that upheld the appeal. "In practical terms" there is no further legal avenues to pursue in Pakistan, he said.

Sheikh was convicted of helping lure Pearl to a meeting in the southern Pakistani port city of Karachi, during which he was kidnapped. Pearl had been investigating the link between Pakistani militants and Richard C. Reid, dubbed the "Shoe Bomber" after trying to blow up a flight from Paris to Miami with explosives hidden in his shoes.

CLICK HERE TO GET THE FOX NEWS APP

Pearl disappeared Jan. 23 while investigating militant links to the so-called shoe bomber. His body was discovered in a shallow grave soon after a gruesome video of his beheading was delivered to the U.S. consulate in Karachi.