Claims that Morsi ruled undemocratically stem from his repeated attempts to extricate the popularly elected parliament and presidency from anti-democratic traps set by the military. After the Islamist parties’ huge victory in the 2011-2012 parliamentary elections, the military leadership and the Supreme Court (filled with Mubarak-era judges) worked to derail the new parliament and prevent it from establishing an assembly to draft a new constitution.