The new document replaces the previous constitution, which was prepared under the government of Mohamed Morsi, the Muslim Brotherhood leader who became Egypt’s first democratically elected President, in the summer of 2012.