Egypt's former President Mohammed Morsi, who was ousted by the military in 2013, has died after fainting in a courtroom, officials say.
A top figure in the now-banned Islamist movement Muslim Brotherhood, Morsi collapsed in a cage after speaking at a hearing on charges of espionage.
Morsi, who was 67, had been in custody since being ousted following mass protests a year after he took office.
Officials then launched a crackdown on his and Muslim Brotherhood supporters.
Morsi's hearing in the capital, Cairo, was related to charges of espionage emanating from suspected contacts with the Palestinian Islamist group Hamas.
He collapsed moments after addressing the court from a cage some defendants are kept in during sessions, Egypt's public prosecutor said, adding that a medical report showed no apparent recent injuries on Morsi's body.