The politics of the Joseon dynasty, which ruled Korea from 1392 to 1897, were governed by the reigning ideology of Korean Confucianism, a form of Neo-Confucianism. Political struggles were common between different factions of the scholar-officials. Purges frequently resulted in leading political figures being sent into exile or condemned to death. The political system of this period was dominated by a Confucianist bureaucracy. The government officials were ranked in 18 levels, ranging from senior first rank (jeong-il-pum, Hangul: 정1품, Hanja: 正一品) down to junior ninth rank (jong-gu-pum, 종9품, 從九品) based on seniority and promotion, which was achieved through the royal decree based on examinations and recommendations. The power of the bureaucrats often eclipsed that of the central authorities, including the monarch. For much of the dynasty, a complex system of checks and balances prevented any one section of the government from gaining overwhelming power until the 19th century when political power became concentrated in a certain family or individual. Government The king The king ruled for life, unlike any of his appointees. The kings of Joseon were all of the Jeonju Yi clan and descended from Taejo. For a list of Joseon kings, see List of Korean monarchs. Under Confucian philosophy, the king commanded absolute loyalty from his officials and subjects, but the officials were also expected to try to guide the king to the right path if the latter was mistaken. Natural disasters were thought to be due to the king's failings, and therefore, Joseon kings were very sensitive to their occurrences. Civil service In order to serve in the positions of responsibility outside the military in Joseon dynasty, one had to take a series of gwageo literary examinations and pass each of them (usually four to five times). Theoretically, any male other than cheonmin (lowest class) and children of concubines could take gwageo examinations to enter a civil service and thus become yangban (nobility class). In actuality, only the yangban class had the luxury of time and money as well as the necessary connections to pass gwageo exams. In addition, people from the troublesome northern provinces of Hamgyeong and Pyeongan were barred from office for much of the dynasty. Officials served in positions for fixed terms, varying from one year to five years. A successful official might serve in tens of positions in the course of a career. State council State Council (Uijeongbu, Hangul: 의정부, Hanja: 議政府) was