Mubarak, 88, left the Maadi Military Hospital where he had been detained for the past few years, heading to his home in Heliopolis, his lawyer Farid El-Deeb told local media.
Earlier this month, the Appeals Court gave its final verdict and acquitted Mubarak over charges of taking part in killing protesters during the 2011 revolution that toppled him.
In 2013, the court cleared Mubarak and his seven aides, including his interior minister Habib el-Adli, from the charge, but public prosecutors appealed the sentence.
Mubarak will face retrial in the "Ahram's gift" case as he and some of his aides are accused of accepting gifts from the state-owned Al-Ahram newspaper.
Also Read
Mubarak, who ruled Egypt since the 1952 abolition of the monarchy, became president in 1981 after Anwar Sadat's assassination.
A judge at a trial in May 2015 decreed that Mubarak could be released from detention.
However, the government of President Abdul Fattah al-Sisi was reportedly reluctant to free him, fearing public backlash that may accompany such a move.
Sisi served as Mubarak's military intelligence chief and led the military's overthrow of his democratically elected successor Mohammed Morsi in 2013.
Hundreds of people are believed to have been killed as security forces clashed with protesters in Cairo, Alexandria, Suez and other cities around Egypt during the 18-day uprising that forced Mubarak to resign.
Disclaimer: No Business Standard Journalist was involved in creation of this content