Egypt's former President Hosni Mubarak has died at the age of 91, state television said on Tuesday, weeks after undergoing surgery.
Mubarak ruled Egypt for 30 years until he resigned following mass protests against his rule in 2011.
He was jailed for years after the uprising, but was freed in 2017 after being acquitted of most charges.
State TV said Mubarak died at a Cairo hospital where he had undergone an unspecified surgery. The report said he had health complications but offered no other details.
One of his sons, Alaa, announced over the weekend that the former president was in an intensive care after undergoing surgery.
President Abdul Fattah al-Sisi offered condolences and praised Mubarak's service during the 1973 war with Israel. He announced three days of national mourning beginning Wednesday.
“The Presidency mourns with great sorrow the former President of the Republic, Mr. Mohammed Hosni Mubarak," he said in a statement. It referred to Mubarak as "one of the leaders and heroes of the glorious October war, as he assumed command of the Air Force during the war that restored dignity and pride to the Arab nation.”
Mohamed Hosni Mubarak was born on May 4, 1928 in the village of Kafr al-Meselha in the Nile Delta, the son of a government functionary.
He joined the Egyptian Military Academy after school before becoming an air force pilot, rising through the ranks to become air force commander. In 1975, he became vice president to Anwar Sadat.
Mubarak was thrust unexpectedly into office after Sadat was assassinated at a military parade in 1981. The burly former air force commander was never expected to become president but he proved a far more durable leader than anyone imagined at the time.
In power, Mubarak promoted Middle East peace and, from 2004, backed economic liberalization measures that delivered sturdy growth but which many ordinary Egyptians blamed for widening the gap between rich and power.
Mubarak won his first multi-candidate presidential election in 2005, but the outcome was never in doubt and his main rival came a distant second.
The former president had suffered from health problems in the waning years of his rule and went to Germany for gall bladder surgery in March 2010. Yet questions remained over who would succeed the ageing stalwart.
Mubarak stepped down on Feb. 11, 2011, after 18 days of demonstrations by millions of Egyptians inspired by a peaceful popular revolution in Tunisia. The military took control pending democratic elections which were held in 2012.
He is survived by his wife, Suzanne, his two sons and four grandchildren.