After the regency of Shōtoku Tenchi ended the Soga clan, from which Shōtoku's ancestry was derived, took hegemony of the Yamato court. The clan was opposed to Shōtoku's son Yamashiro Ōe and killed him in 643. Under the reign of Empress Kōgyoku the Soga clan head, Soga no Iruka, was virtually an almighty leader of the court. Those who were against Soga's dictatorship included the emperor's brother Karu, the emperor's son, Prince Naka no Ōe, along with his friend Nakatomi no Kamatari, and his son-in-law Soga no Ishikawamaro. They ended Iruka's regime by a coup d'état in 645. As Kōgyoku renounced her throne, Karu ascended to be Emperor Kōtoku. The new emperor, together with the Imperial Prince Naka no Ōe, issued a series of reform measures that culminated in the Taika Reform Edicts in 646. At this time, two scholars, Takamuko no Kuromaro and priest Min, were assigned to the position of Kuni no Hakase. They were likely to take a major part in compiling these edicts which in essence founded the Japanese imperial system and government. The ruler according to these edicts was no longer a clan leader but Emperor, who exercised absolute authority. The reform was much inspired by the Japanese missions to China in the Sui and Tang dynasties, and sought to emulate China's system of centralized imperial control and Confucianism
Reform
From today's vantage point, the Taika Reform is seen as a coherent system in which a great many inherently dissonant factors have been harmonized, but the changes unfolded in a series of successive steps over the course of many years. The major objective was to reassert imperial authority through reorganizing the government, including abolishing the kabane hereditary title system previously in place. A major reform on the law include the Taihō Code written in 702, consisting of criminal and administrative laws modeled after Tang China, leading to the ritsuyo system. New offices created include that of the Daijō daijin, who presided over the Dajōkan, which included the Minister of the Left, the Minister of the Right, eight central government ministries, and a prestigious Ministry of Deities. Locally, the country was reorganized into 66 imperial provinces and 592 counties, with appointed governors. Subjects were to be surveyed, land was to be nationalized and redistributed, and private weapons were to be stored in government armories. A land tax, military service and labor obligations were instituted on subjects. A permanent capital was also established in Nara, emulating the grid system of Tang China's capital Xi'an. An exam system was also established, although unlike in China, it was only open to those from noble families. The role of women became much more restricted in Japan, especially in official domains, in emulation of China. The Reform Edicts severely curtailed the independence of regional officials and constituted the imperial court as a place of appeal and complaint about the people. In addition, the last edicts attempted to end certain social practices, in order to bring Japanese society more in line with Chinese social practices. A legal code was enacted, with a reformed bureaucracy and law. Nonetheless, powerful clans continue to exercise power in the imperial court and in regional governments. It would take centuries for the conceptual idea of the Chinese-style emperor to take root in Japan. Chinese civilization, including its art, philosophy, literature and architecture, would become much more entrenched in Japan compared to China's system of government.