After that, Ukanomitama no kami was enshrined together in the generation of FUJIWARA no Tokihira and, in 1131, when FUJIWARA no Ietada was given Kazan-in (Koichijo-tei was also called 'Kazan-in' since Emperor Hanayama made it as his palace) from his father, Morosane, and founded the Kazanin family, Amanoiwatowake no kami was also enshrined together as a guardian god of the family, and it was first ranked as an official shrine in 1275.
その後、藤原時平の代に倉稲魂神を合祀し、更に天承元年（1131年）に藤原師実から子藤原家忠が花山院（小一条第も花山天皇の皇居とされて以来「花山院」と呼ばれるようになっていた）を伝領して花山院家を開くと、天石戸開神をも合祀して同家の守護神とするようになり、建治元年（1275年）になって初めて官社に列したという。