, is the historical law system based on the philosophies of Confucianism and Chinese Legalism in Japan. The political system in accord to Ritsuryō is called "Ritsuryō-sei" (律令制). Kyaku (格) are amendments of Ritsuryō, Shiki (式) are enactments.
Ritsuryō defines both a criminal code and an administrative code.
During the late Asuka period (late 6th century – 710) and Nara period (710–794), the Imperial Court in Kyoto, trying to replicate China's rigorous political system from the Tang dynasty, created and enforced some collections of Ritsuryō. Over the course of centuries, the ritsuryō state produced more and more information which was carefully archived; however, with the passage of time in the Heian period, ritsuryō institutions evolved into a political and cultural system without feedback.
In 645, the Taika reforms were the first signs of implementation of the system.
Major re-statements of Ritsuryō included the following:
Ōmi-ryō (近江令, 669) – 22 volumes of administrative code, of disputed existence
Asuka-kiyomihara-ryō (飛鳥浄御原令, 689) – 22 volumes of administrative code
Taihō-ritsuryō (大宝律令, 701) – of major influence, 11 volumes of administrative code, 6 volumes of criminal code
Yōrō-ritsuryō (養老律令, 720, enacted in 757) – 10 volumes of administrative code, 10 volumes of criminal code, revised edition of the Taihō-ritsuryō
In the later half of the seventh century, the Kokugunri system was introduced, dividing the regions of Japan into several administrative divisions.
Provinces
Districts
Neighbourhoods
In 715 CE, the Gōri system was introduced, resulting in the following.
Provinces
Districts
Townships
Neighbourhoods
This system was abandoned in 740 CE.
The ritsuryō system also established a central administrative government, with the emperor at its head. Two departments were set up:
The Jingi-kan (神祇官, Department of Worship), in charge of rituals and clergy
The Daijō-kan (太政官, Department of State), divided into eight ministries.
Posts of those public Departments were all divided into four ranks (shitō): kami (長官), suke (次官), jō (判官) and sakan (主典).