DHAKA - Bangladesh’s top court on Tuesday rejected a final appeal by the leader of an Islamic party against a death sentence for alleged atrocities committed during the 1971 war, lawyers said, meaning he could be hanged at any time.

The verdict comes amid a spate of militant attacks in the Muslim-majority nation, the most serious on July 1, when gunmen stormed a cafe in the capital, Dhaka, and killed 20 hostages, most of them foreigners.

The rejection, by a panel of five judges headed by Chief Justice Surendra Kumar Sinha, comes a day after a visit by US Secretary of State John Kerry during which he urged Bangladesh to uphold democratic principles.

In March, the Supreme Court upheld the death penalty for Mir Quasem Ali, 63, a media tycoon and key financier of the Jamaat-e-Islami party, for alleged murder, confinement, torture and incitement to religious hatred during the war.

“Now it is only a matter of time to execute the verdict, unless he seeks clemency from the president,” Attorney General Mahbubey Alam told reporters.

The Jamaat leader and his family have yet to decide whether to approach the president, said Ali’s lawyer, Khandaker Mahbub Hossain. “All the legal battles are over now,” he told reporters.

Ali could go to the gallows any time, without such clemency. The war crimes tribunal set up by Prime Minister Sheikh Hasina in 2010 has sparked violence and drawn criticism from opposition politicians, who say it is victimising her political opponents. The government denies the accusations.

Human rights groups say the tribunal’s procedures fall short of international standards, but the government rejects that assertion, and the trials are supported by many Bangladeshis.

Authorities have deployed additional security forces across Bangladesh as similar previous judgments triggered violence that killed around 200, mainly Jamaat activists and police.