The premiership of Mohammad Mosaddegh began when his first government was formed on 28 April 1951 and ended on 19 August 1953, when his second government was overthrown by the American–British backed coup d'état. During the time, the two cabinets of Mosaddegh took control except for a brief period between 16 and 21 July 1952, in which Ahmad Qavam was the Prime Minister, taking office due to resignation of Mosaddegh from premiership and deposed by Shah after five days of mass demonstrations.