Until 22 May 2014 the politics of Thailand were conducted within the framework of a constitutional monarchy, whereby the prime minister is the head of government and a hereditary monarch is head of state. The judiciary is independent of the executive and the legislative branches.
Since the coup d'état of 22 May 2014, the 2007 constitution was revoked, and Thailand has been under the rule of a military organization called National Council for Peace and Order (NCPO), which has taken control of the national administration. The chief of the NCPO abolished the national assembly and assumed the responsibilities of the legislative branch. Under the martial law was enforced throughout the kingdom, military courts have been tasked to be responsible for some cases that are normally under the civilian courts. However, the court system including the Constitutional Court still remains in existence, even without the constitution.
Thai kingdoms and the late Kingdom of Siam were under absolute rule of kings. After the "democratic revolution" in 1932, led by Westernized bureaucrats and a tradition-oriented military, the country officially became a constitutional monarchy with a prime minister as the head of government. The first written constitution was issued. Politics became the arena of fighting factions between old and new elites, bureaucrats, and generals. Coups happened from time to time, often bringing the country under the rule of yet another junta. To date Thailand has had 17 charters and constitutions, reflecting a high degree of political instability. After successful coups, military regimes have abrogated existing constitutions and promulgated interim charters. Negotiations between politicians, men of influence, and generals has become a driving force in the restoration of temporary political stability.