Hosni Mubarak and his former interior minister Habib el-Adly were sentenced to life in prison on the basis of their failure to stop the killings during the first six days of the 2011 Egyptian Revolution. His successor, Mohamed Morsi, was sworn in as Egypt's first democratically elected president before judges at the Supreme Constitutional Court. Fresh protests erupted in Egypt on 22 November 2012. On 3 July 2013, the military overthrew the replacement government and President Morsi was removed from power.