A Cairo criminal court will issue its verdict in the retrial of Hosni Mubarak on 27 September.
The former autocrat is being tried on charges related to the killing of protesters in the January 2011 uprising.
He started his testimony on Wednesday by defending his 30-year rule, and denying charges of ordering the killing of protesters.
Sitting on a stretcher in front of the judge, the 86-year-old recounted what he perceived as the achievements of his rule, picking up from when his predecessor Anwar Sadat was assassinated.
Mubarak said he has suffered "offense, defamation and allegations" since stepping down.
He added that he ruled Egypt with "dedication, honour and honesty," and that history would judge him.
Mubarak is being retried, alongside his interior minister El-Adly and six of his top aides, for complicity in the killing of around 850 unarmed demonstrators during the 18-day popular revolt in 2011.
Mubarak's sons face trial alongside their father on corruption charges.