Mubarak's sons Alaa and Gamal, joined by soldiers, walked next to their father's coffin at a huge mosque built by the army in a Cairo suburb where the funeral took place.
Mubarak died on Tuesday in intensive care weeks after undergoing surgery, leaving Egyptians divided over his legacy presiding over an era of stagnation and repression, which some nevertheless recall as more stable than the chaos that followed.