An Egyptian appeals court has ordered the release of deposed president Hosni Mubarak pending his retrial for the deaths of protesters in 2011.
But the court ruled on April 15 that Mubarak will remain in custody pending investigations into corruption charges.
Egypt's state television said the court ordered Mubarak's release after the maximum temporary detention of two years expired.
Mubarak, who ruled Egypt for three decades, was ousted in a popular uprising in 2011.
He has been under arrest since April 2011 charged with complicity in the murder and attempted murder of hundreds of peaceful protesters on January 25-31, 2011.
Mubarak has been granted a retrial in the murder case, appealing against a life sentence.
He is also facing several charges of corruption.
Mubarak is currently being held in a military hospital in southern Cairo.
Based on reporting by AFP, dpa, and CNN