Amid the ongoing political crisis, the Royal Thai Army under Commander General Prayut Chan-o-cha declared martial law on 20 May 2014, citing the need to suppress violence and maintain peace and order. Talks were held between leaders of various factions, but after these failed, Prayut took power in a coup d'état on 22 May. The National Council for Peace and Order (NCPO) was established as the ruling junta, and the constitution was again repealed.