Egypt’s state TV said Mursi had fainted after a court session and died afterwards.
Mursi was democratically elected in 2012 after the 2011 wave of revolutions in the Arab world saw the end of President Hosni Mubarak’s 30-year rule in Egypt.
He was then toppled following mass protests and a military coup in July 2013.
The deceased served just one year of a four-year presidential term, while the organization to which he belonged, the Muslim Brotherhood, has since been outlawed.
Mursi had received at least one lifetime prison sentence and had been added to Egypt’s official list of “terrorists”.
In 2015, he received a death sentence for escaping from prison during Egypt’s 2011 popular uprising.
In the same year, he was convicted of “spying” for Palestinian resistance movement Hamas, for which he was sentenced to life.