The last twenty years of Thailand's military history has been dominated less by the threat of external attack, but by the role of the Thai military in internal politics. For most of the 1980s, Thailand was ruled by prime minister Prem Tinsulanonda, a democratically inclined leader who restored parliamentary politics. Thereafter the country remained a democracy apart from a brief period of military rule from 1991 to 1992, until, in 2006 mass protests against the Thai Rak Thai party's alleged corruption prompted the military to stage a coup d'état. A general election in December 2007 restored a civilian government, but the issue of the Thai military's frequent involvement in domestic politics remains.