During the course of the Egyptian Revolution of 2011, Shafik was named prime minister by then president Hosni Mubarak on 29 January 2011. Shafik's period in office as prime minister was short-lived, lasting just over a month, after he resigned on 3 March due to pressure from protestors and the opposition. They had objected to Shafik staying on as PM, having been seen as one of Mubarak's old guard. Shafik was alleged to have been a member of the Supreme Council of the Armed Forces that took over power after Mubarak's departure on 11 February 2011, although initial reporting only reflected a poor understanding of the makeup of the SCAF immediately following Mubarak's fall. Shafik was succeeded by Essam Sharaf after he stepped down.