It is said to have been erected in the Asuka Period by Prince Shotoku, and some say that the remains of Kumagori Shoja Temple, the temple previously built at the current location of Daian-ji Temple, are of it, but actually, it is accepted that it was erected to be the Uji-dera temple (temple built to pray for the glory of a clan) for the local ruling family, the Nukatabe clan, who were based in this area.
飛鳥時代に聖徳太子の建立と伝えられ、大安寺の前身である熊凝精舎（くまごりしょうじゃ）跡ともいわれるが、実際にはこの地を本拠としていた豪族額田部（ぬかたべ）氏の氏寺として建立されたものと思われる。