Following the Egyptian Revolution of 2011 and fall of Hosni Mubarak, the Brotherhood was legalized and was at first very successful, dominating the 2011 parliamentary election and winning the 2012 presidential election, before the overthrow of President Mohamed Morsi a year later, leading to a crackdown on the Brotherhood again.