Morsi's decision to sidestep the courts and free his office of judicial oversight at a time when there was no new constitution or parliament, while he, Morsi, the president held wide executive and legislative authority meant that he had essentially set himself up as an Islamic Dictator.
Morsi, only recently elected, (fairly) after the overthrow of Mubarak was sidestepping the Supreme Constitutional Court which had dissolved the Islamist-led parliament and was about to disband the islamic assembly which was drafting a new constitution.
Morsi's decree granted that body (the islamic assembly) immunity from court decisions, infuriating secularists, liberals and Christians who have resigned from the assembly in recent weeks over accusations that it is too heavily influenced by sharia, or Islamic law.
And so, the Egyptian military deposed Morsi, essentially a coup d'etat which is a problem for any fairly elected government. One minute the people "wanted" him ( as a replacement for the despotic Mubarek) and the next they wanted him out: but the rationale was for change, just not the change Morsi had in mind.
Still, apparently the change to Morsi, was a change from bad to "less" bad.
Democracy is not pretty - is the take away.