Sudan's former president Omar al-Bashir, ousted amid a popular pro-democracy uprising last year, went on trial Tuesday over the military coup that brought him to power more than three decades ago.

Bashir, 76, and his co-accused could face the death penalty if convicted over the 1989 Islamist-backed overthrow of the democratically elected government of prime minister Sadek al-Mahdi.

A file photo taken on April 1, 2019 of former Sudanese president Omar al-Bashir
A file photo taken on April 1, 2019 of former Sudanese president Omar al-Bashir AFP / ASHRAF SHAZLY

It is the first time in the Arab world's modern history that the architect of a coup is tried for plotting a putsch, although the man dubbed the true brain behind it, Hassan Turabi of the National Islamic Front, died in 2016.

Along with Bashir, 27 other men from the ousted regime were in the dock at the Khartoum court house, which was heavily guarded by police outside with AK-47 assault rifles, batons and tear gas grenades.

Members of the Sudanese security forces deploy outside a court in Khartoum prior to the trial of Sudan's ousted president Omar al-Bashir
Members of the Sudanese security forces deploy outside a court in Khartoum prior to the trial of Sudan's ousted president Omar al-Bashir AFP / ASHRAF SHAZLY

"This court will listen to each of them and we will give each of the 28 accused the opportunity to defend themselves," said the presiding judge, Issam al-Din Mohammad Ibrahim.

Bashir, who was kept with the other accused in a caged area of the courtroom, did not speak during the trial's opening session which ended after about one hour.

A file photo from August 31, 2019 shows Bashir in court to face charges of illegal acquisition and use of foreign funds
A file photo from August 31, 2019 shows Bashir in court to face charges of illegal acquisition and use of foreign funds AFP / Ebrahim HAMID

The judge said the court was not large enough to accommodate the more than 190 defence lawyers and adjourned the hearings until August 11.

Outside the courthouse, dozens of family members of the defendants noisily rallied against the trial, many shouting "Allahu Akbar (God is greatest)".

Sudanese gather outside the court where Bashir was tried. He could face the death penalty if convicted over his 1989 coup against the democratically elected government of prime minister Sadek al-Mahdi
Sudanese gather outside the court where Bashir was tried. He could face the death penalty if convicted over his 1989 coup against the democratically elected government of prime minister Sadek al-Mahdi AFP / ASHRAF SHAZLY

"They did not allow the majority of the families to attend the trial although we presented our requests three days ago," Mohammad Nafaa, the son of a former agriculture minister, told AFP.

The trial comes as Sudan's post-revolution transitional government has launched a series of reforms in hopes of fully rejoining the international community.

Sudanese security forces deploy outside the Khartoum courthouse during the trial of Bashir and 27 co-accused
Sudanese security forces deploy outside the Khartoum courthouse during the trial of Bashir and 27 co-accused AFP / ASHRAF SHAZLY

Sudan has also pledged in principle to hand over Bashir to the International Criminal Court to face trial on charges of war crimes and genocide in the Darfur conflict, which left 300,000 people dead and displaced 2.5 million in a scorched earth campaign against a 2003 insurgency.

Also in the dock were Bashir's former vice presidents Ali Osman Taha and Bakri Hassan Saleh and several of his former ministers and governors.

They are accused of having plotted the June 30, 1989 bloodless coup in which the army arrested Sudan's political leaders, suspended parliament, closed the airport and announced the power grab on the radio.

A vehicle carrying Bashir leaves the Khartoum courthouse in the Sudanese capital
A vehicle carrying Bashir leaves the Khartoum courthouse in the Sudanese capital AFP / ASHRAF SHAZLY

Bashir stayed in power for 30 years before being overthrown on April 11, 2019 after several months of unprecedented, youth-led street demonstrations.

Until the end, the idiosyncratic leader with the trademark cane, sometimes known to dance at political rallies, had been defiant, angrily labelling the protesters "traitors" and "rats" that should "return to their holes".

In the 1990s, under his mentor Turabi, Bashir had steered Sudan -- a country with a plethora of tribes and then divided between the mainly Muslim north and Christian or animist south -- towards radical Islam.

For several years Khartoum hosted the Al-Qaeda leader Osama bin Laden before expelling him in 1996 under pressure from the United States. Bashir then shifted away from backing Islamist militants to improve relations with his opponents and neighbours.

It was under Bashir's rule that ethnically diverse Sudan saw the oil-rich south gain its independence in 2011 after two decades of conflict with the Arab Muslim north.

One of the army of defence lawyers, Hashem al-Gali, has charged that Bashir and the others would face "a political trial" being held "in a hostile environment".

Moaz Hadra, one of the lawyers who led the push to bring the case to court, told AFP he hoped the trial will help "safeguard Sudanese democracy. In this way, we hope to bring an end to the era of putsches in Sudan."

The trial comes as Sudan's joint civilian-military transitional government is introducing a host of reforms and has relaunched peace talks with rebel groups.

Prime Minister Abdalla Hamdok's administration has recently abolished rules which restricted women's movements, outlawed the practice of female genital mutilation, scrapped a law against apostasy and relaxed a ban on alcohol.

Khartoum hopes soon to be taken off the US State Department's list of countries that sponsor terrorism, a significant hurdle to receiving foreign aid and investment.