In April 2014 the Constitutional Court ruled that the election was unconstitutional because the vote had not taken place on the same day nationwide. Following an agreement between the Election Commission and Yingluck's government, the fresh elections were set for 20 July. However, the elections were cancelled after a coup d'état in May deposed the elected government and installed a military government known as the National Council for Peace and Order (NCPO), led by General Prayut Chan-o-cha, then-Commander in Chief of the Royal Thai Army. The NCPO, on taking power, declared its intention to hold general elections after carrying out reforms and promulgating a new constitution.