From the Heian period onward, as the ritsuryo system relaxed and the Fujiwara family rose to power, the society of the Imperial court took on a more formal shape, and adherence to to combat the creation of burgeoned.
During the Heian period the nobility organized their lives around practices recommended by onmyōji.