In less than two weeks, on Oct 20, Mr Joko Widodo will be sworn in as Indonesia's seventh president - the first without ties to its authoritarian past. Mr Joko succeeds Dr Susilo Bambang Yudhoyono, marking the country's first exchange of power between directly elected presidents.
The election was fiercely contested but peaceful, and the role of the military was singled out by Dr Yudhoyono. On Tuesday, he praised the armed forces for their neutrality in the heated contest, saying this was proof of their successful reform. He urged the 500,000 soldiers to be the "army of the people" and to "help safeguard and take part in the ongoing transformation of our nation".
Unlike Indonesia's leadership transition, Thailand's political development has stymied.
Following a coup in May, Thailand has been ruled by a military junta under General Prayuth Chan-ocha. Through the National Council for Peace and Order (NCPO), the Thai military controls key ministerial portfolios, including defence, foreign affairs and the interior.
The NCPO has also appointed a 200-member National Legislative Assembly filled primarily with active and retired military and police officers. Just over half, or 52 per cent, of Thailand's legislature is now reserved for the armed forces - more than twice the military's representation in Myanmar's current Parliament.
What explains Indonesia's and Thailand's differing trajectories?
The support of the armed forces for political reform has important bearing for the prospects for democratisation. Militaries possess coercive resources that can revoke, if not veto outright, the policies of their civilian leaders. The coup d'etat is, perhaps, the starkest manifestation of what happens when the military exercises this prerogative.
Curtailing the political role of the military is vital for countries such as Indonesia and Thailand.
Indonesia's military (Tentara Nasional Indonesia, or TNI) was the main tool of repression during Suharto's more than three-decade long New Order regime.
The Royal Thai Armed Forces (RTARF) has attempted more than 30 putsches since the end of absolute monarchy in 1932, and was complicit in almost every change in the prime ministership since 2006.
Both militaries suffered from damaged reputations and faced critical junctures which opened the prospect for democratic reforms. The RTARF's image took a beating following its crackdown on pro-democracy protesters in May 1992. In Indonesia, the TNI was implicated in the human rights abuses prior to Suharto's downfall, and was viewed as being behind the post-independence referendum violence in Timor Leste in 1999. The TNI, however, enacted institutional reforms and took steps to support democratisation. Following the collapse of the Suharto regime, the TNI took on a Paradigma Bahru (New Paradigm). It reduced its representation in the local and national legislatures, and completely withdrew from these positions in 2004. The military's Dwifungsi (Dual Function) doctrine, which justified its socio-political role, was repealed in 2000. The kekaryaan policy, which permitted active military officers to serve in strategic positions in the bureaucracy and state-owned corporations, was also rescinded in 2000.
The Indonesian Parliament passed laws separating the police from the military, decreeing an internal security (keamanan) role for the police, and placed defence (pertahanan) under the armed forces. Under the New Order regime, the military was used as a vote canvasser for the ruling party, Golkar. Notably, in all post-Suharto elections, the TNI has maintained its neutrality, even when leading retired military officers, such as Dr Yudhoyono, Mr Wiranto and Mr Prabowo Subianto, ran for office.
Perhaps the most significant reforms were the State Defence Law of 2002 and the 2004 TNI Act. Anchoring the State Defence Law was the Indonesian Parliament's oversight role in force deployment, the military's budget, and the appointment of key commanders. The TNI Act was far-reaching in codifying reforms in support of democratisation. The law clearly spelt out duties of the TNI, obligating military personnel to adhere to democratic principles, civilian political supremacy, the respect for human rights, and national and international laws. The Act also outlawed the military's involvement in political and economic activities and required the transfer of military businesses to the government by 2009.
In Thailand, the military's nascent promises to retreat from politics were not carried through. Following the May 1992 crackdown, the RTARF pledged it would not intervene in politics again. However, this retreat to the barracks was not institutionalised and legally codified. Under prime ministers Chuan Leekpai and Chavalit Yongchaiyudh, the military was downsized and streamlined. Limitations were also placed on RTARF's economic activities. But these moves to delimit the Thai military's prerogatives in the 1990s were largely a reflection of the economic realities forced on the government during the 1997/98 financial crisis.
The RTARF's political sympathies were, and remain, closely aligned with Thailand's conservative elites and the monarchy. Privy Council chairman, retired general Prem Tinsulanonda, famously remarked in July 2006 on the military's tutelage over elected governments: "In horseracing, horse owners hire jockeys to ride horses. The jockeys do not own the horses. They just ride them. A government is like a jockey. It supervises soldiers but the real owners are the country and the king. The government supervises and employs us... What I mean is that we are the country's soldiers. Governments come and go."
For states with legacies of militaries playing a central role in politics, democratisation requires the developing of strong and legitimate institutions to separate the political elite from the armed forces, and more importantly, for these institutions to exercise oversight over the military.
Indonesia has made significant strides to build these institutions, rendering coups d'etat a low possibility. In Thailand, on the other hand, elite political manoeuvrings almost always involve the armed forces. Democratisation remains elusive in the land of smiles.
The writer is assistant professor of political science at the National University of Singapore. He is author of Defect Or Defend: Military Responses To Popular Protests, published by Johns Hopkins University Press (2014).
This article was first published on Oct 9, 2014.
Get a copy of The Straits Times or go to straitstimes.com for more stories.