In the 7th century, Emperor Tenmu, a master of tenmontonko who personally performed divinations with a choku during the Jinshin War and who had great knowledge of the principles of inyo gogyo, set up 'Onmyoryo' and Japan's first senseidai (astrology station) in 676.
7世紀には、壬申の乱の際に自ら栻（ちょく）を取って占うほど天文遁甲の達人で陰陽五行思想に造詣の深かった天武天皇が、676年（天武天皇4年）に「陰陽寮」や日本初の占星台を設けた。