An Egyptian court on Saturday sentenced ousted Islamist president Mohamed Mursi to life in prison in an espionage trial in which six of his co-defendants were handed death penalties.

Mursi, who has been sentenced to death in a separate trial, was Egypt's first democratically elected president but the army overthrew him in 2013 and cracked down on his supporters.
He was given life in prison Saturday for leading an unlawful organisation and 15 years for having "stolen secret documents concerning state security," his lawyer said.
Mursi came to power after the 2011 revolution that toppled longtime strongman Hosni Mubarak.
But after about one year in office, he was overthrown and detained by then-army chief Abdel Fattah al-Sisi, who is now Egypt's president.
Courts have since sentenced hundreds of Islamists to death, including other Muslim Brotherhood leaders, though many have appealed and been granted new trials.
Hundreds of Mursi supporters were killed during protests following his ouster. Thousands of others were detained in a crackdown that was later expanded to include leftist and liberal dissidents.
The Brotherhood has been blacklisted as a terrorist group.
Jihadists who have sworn allegiance to the Islamic State group intensified their attacks following Mursi's overthrow, killing hundreds of Egyptian policemen and soldiers, mainly in the north of the Sinai Peninsula.
The jihadists say the attacks are in retaliation for the crackdown on Brotherhood supporters.

 'Utterly corrupted justice system'

Two of the journalists sentenced to death, Ibrahim Mohamed Hilal and Jordanian citizen Alaa Omar Mohamed Sablan, worked for Qatar-based broadcaster Al-Jazeera.
The third has been named as Asmaa Mohamed al-Khatib, a female reporter with pro-Muslim Brotherhood news outlet Rassd.
The three others handed the death penalty, who were present during the trial, are documentary producer Ahmed Ali Abdo, EgyptAir cabin crew member Mohamed Adel Kilani and university teaching assistant Ahmed Ismail Thabet, according to the prosecution.
The death sentences had been sent to the mufti -- Egypt's official interpreter of Islamic law -- as his opinion is legally required on death sentences although it is not binding.
Rights group Amnesty International criticised the trial outcome as "appalling" and called for the death sentences to be overturned and for the "ludicrous charges" against the journalists to be dropped.
"Egypt's broken and utterly corrupted justice system is now little more than a handy tool for the authorities' repression of any vestiges of opposition or criticism," said Magdalena Mughrabi-Talhami, Amnesty's deputy director for the Middle East and North Africa.
The defendants can appeal the rulings before the court of cassation, and those tried in absentia can seek a retrial if they turn themselves in.
Egypt has cracked down on Al-Jazeera and imprisoned three of its journalists in Cairo, including Australian Peter Greste and Canadian Mohamed Fahmy, before releasing them by presidential decree.
Mursi has already received sentences in several other separate trials.
In 2015, a court sentenced him to death in connection with prison breaks and attacks on police stations during the 2011 uprising. He is appealing that verdict.
Mursi was one of the Brotherhood leaders who were jailed during the 18-day uprising, escaping with thousands of inmates who broke out of prison.
He has also been sentenced to life in prison for "espionage" on behalf of Iran and other countries, as well as militant groups Hamas and Hezbollah.
Another court sentenced him to 20 years in prison for clashes that erupted outside his presidential palace in December 2012 between his supporters and opponents, killing up to 10 people.
The clashes erupted after Mursi issued a decree placing his decisions above judicial review.
Millions took to the streets demanding his resignation before the military intervened to remove him.