Morsy, 67, had been on trial for an espionage case when he suffered a heart attack, Egypt's state-run Al Ahram reported online.
He was granted a request to make a statement before he fainted and passed away, state media said.
A strict Islamist who was educated in southern California, Morsy was voted in power in June 2012 following the Arab Spring 2011 uprising in the year before, which toppled Hosni Mubarak's longstanding rule.
A former member of the Muslim Brotherhood, Morsy had campaigned on appealing to the broadest possible audience
But, during his year in power, critics say he became an authoritarian leader who was forced through a conservative agenda. In 201
3, Morsy and the political wing of the Muslim Brotherhood Movement were ousted in a coup, with the Muslim Brotherhood banished by the government after the military seized power and declared a terrorist organization
Roughly 1,000 Egyptians – many of them (19659008) Egypt's Mubarak testifies in the trial of his ousted successor ” data-src-mini=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-small-169.jpg” data-src-xsmall=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-medium-plus-169.jpg” data-src-small=”http://cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-large-169.jpg” data-src-medium=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-exlarge-169.jpg” data-src-large=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-super-169.jpg” data-src-full16x9=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-full-169.jpg” data-src-mini1x1=”//cdn.cnn.com/cnnnext/dam/assets/190617171255-02-mohamed-morsy-lead-restricted-small-11.jpg” data-demand-load=”not-loaded” data-eq-pts=”mini: 0, xsmall: 221, small: 308, medium: 461, large: 781″ src=”data:image/gif;base64,R0lGODlhEAAJAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAQAAkAAAIKlI+py+0Po5yUFQA7″/>
Following his ouster, Morsy was tried en masse with Mohamed Badie – the spiritual leader of the Muslim Brotherhood – as well as over 100 alleged members of the outlawed group, ac
In 2015, he was sentenced to death over a jailbreak during the 2011 uprising and to life on spying charges after being convicted of conspiring with the Palestinian Hamas group, the Iranian Revolutionary Guard and other foreign organizations. ]
Morsy was also handed a 25-year prison sentence for leaking state secrets to Qatar, and had received an additional 15-year sentence for other, lesser, charges.
In 2016, Morsy's death sentence and life sentence were overturned.
Last year, in a report from a panel commissioned by Morsy's family and made up of British Parliamentarians, the conditions of his detention would "constitute cruel, inhuman and degrading treatment," and "could meet the threshold for torture (with) Egyptian and International law. " The panel wrote that Morsy is receiving inadequate medical care "which is likely to lead to premature death."