Ritsuryō,, 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 and Nara period, 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ō – 22 volumes of administrative code, of disputed existence
Asuka-kiyomihara-ryō – 22 volumes of administrative code
Taihō-ritsuryō – of major influence, 11 volumes of administrative code, 6 volumes of criminal code
Yōrō-ritsuryō – 10 volumes of administrative code, 10 volumes of criminal code, revised edition of the Taihō-ritsuryō
Posts of those public Departments were all divided into four ranks : kami, suke, jō and sakan. This ubiquitous pattern would be replicated consistently, even amongst members of the court whose functions had little to do with those kinds of powers and responsibilities which are conventionally associated with governing – for example: ;Court musicians
Chief court musician.
First assistant court musician.
Second assistant court musician.
Alternate assistant court musicians.
;Court pharmacists
Chief court pharmacist.
First assistant to the chief pharmacist.
Second assistant to the chief pharmacist.
Alternate assistant to the chief pharmacist.
Establishment of court rank
A global system of ranking for all public posts was introduced with over 30 ranks, regulating strictly which posts could be accessed by which rank. Ranking was supposed to be mostly merit-based, the children of high-ranking public officials were nonetheless granted a minimal rank. This provision existed in the Tang law, however under the Japanese ritsuryo ranks for which it was applied were higher as well as the ranks obtained by the children. The highest rank in the system was the first rank, proceeding downwards to the eighth rank, held by menials in the court. Below this, an initial rank called so-i existed, but offered few rights. The top six ranks were considered true aristocracy, and were subdivided into "senior" and "junior" ranks. Below the third rank, a further subdivision between "upper" and "lower" existed, allowing for ranks such as “junior fourth rank lower” or “senior sixth rank upper”. Promotion in ranks was often a very gradual, bureaucratic process, and in the early days of the Codes, one could not advance beyond sixth rank except by rare exception, thus causing a natural cut-off point between the aristocrats and the menials. Additionally, income in the form of koku, or bushels of rice from the provinces, increased dramatically as one advanced in rank. The average sixth-rank official might earn 22 koku of rice a year, but the fifth rank might earn 225 koku of rice, while a third rank official could earn as much as 6,957 a year. Registration of the citizens, updated every 6 years, and a yearly tax book were established. Based on the keichō, a tax system was established called. Tax was levied on rice crops but also on several local products sent to the capital. The system also established local corvée at a provincial level by orders of the kokushi, a corvée at the Capital and military service.
Criminal code
A criminal system was introduced, with five levels of punishment.
Caning: Depending on the severity of the crime, 10, 20, 30, 40 or 50 strikes on the buttocks.
Public caning: Depending on the severity of the crime, 60, 70, 80, 90 or 100 strikes on the buttocks, performed in public, using a slightly thicker cane than was used for chi.
Imprisonment: Depending on the severity of the crime, imprisonment for 1, 1.5, 2, 2.5 or 3 years.
Exile Depending on the severity of the crime, nearby exile, semi-distant exile, or distant exile.
Death: Depending on the severity of the crime, death by hanging or decapitation.
It defined eight heavy crimes that were exempt from amnesty. The code was based on the Ten Abominations of the Tang code, but two crimes related to family life—family discord and disruption of the family —were removed.
Handen-Shūju
In accordance with Chinese legal codes, land as well as citizens were to be "public property". One of the major pillars of the Ritsuryō was the introduction of the Handen-Shūju system, similar to the equal-field system in China. The Handen-Shūju regulated land ownership. Based on the registration, each citizen over 6 was entitled to a "distributed field", subject to taxation. The area of each field was 2 tan for men, and two-thirds of this amount for women.. The field was returned to the country at death. Land belonging to shrines and temples was exempt from taxation. Collection and redistribution of land took place every 6 years.
Castes
The population was divided in two castes, Ryōmin and Senmin , the latter being close to slaves. Citizens wore different colors according to their caste.
Evolution of Ritsuryō application
Several modifications were added over time. In order to promote cultivation, a law allowing the ownership for three generations of newly arable fields was promulgated in 723 and then without limits in 743. This led to the appearance of large private lands, the first shōens. Strict application of the Handen-Shūju system decayed in the 8th and 9th century. In an attempt to maintain the system, the period between each collection/distribution was extended to 12 years under Emperor Kanmu. At the beginning of Heian period, the system was almost not enforced. The last collection/distribution took place between 902 and 903. The caste system was less and less strictly enforced. Some Ryōmin would wed Senmin to avoid taxation, and Senmin/Ryōmin children would become Ryōmin. At the end of the 9th century / beginning of the 10th, the cast system was practically void of its substance. Hereditary high-ranks for public posts led to the monopoly of occupation of the most important posts by a limited number of families, in effect a nobility, amongst which the Fujiwara clan, Minamoto clan, Taira clan and the Tachibana clan.