大化の改新
The office of kuni no miyatsuko was abolished in the Taika reforms in 645 and the former administrative ‘’kuni’’ provinces were formally reorganized under the ritsuryō system. The provinces became ruled by new officials called kuni no mikotomochi, or more commonly, . The kuni no miyatsuko continued to be appointed after the Taika Reform, generally to the office of . Gunji were appointed from powerful regional kuni no miyatsuko families, appointed for life, and the position became hereditary. The Kuni no miyatsuko were now in charge of spiritual and religious affairs, specifically the Shintō rites of each province. These religious officials became known as , or "new" kuni no miyatsuko. The kuni no miyatsuko, now in the office of gunji, often sided with peasants against the ruling kokushi elite. The gunji position, however, was abolished with the establishment of the shōen system in the early Heian period. A few kuni no miyatsuko clans retained influence after the Taika reform, such as the of Izumo Province in present-day eastern Shimane Prefecture.