Following a coup on 22 May 2014, the military of Thailand took over the functions of government and established a junta.