Dainichi-ji is now a Shingon temple. It was founded in the 8th Century by Gyoki who also carved the honzon of Dainichi Nyorai, the Great Sun Buddha.
Kukai visited near here in the early 9th Century and according to the legend he carved a statue of Yakushi Nyorai out of a camphor tree using just his fingernails. It was housed at that spot in the Okunoin, inner sanctuary, of the temple.
Primarily because of this statue the temple is believed to be efficacious for the treatment of illnesses related to the head and upper body. The Okunoin was destroyed in a storm and the Yakushi statue moved to the main temple.
The Yakushi statue is a registered national Treasure. The temple is located in Konan City in Kochi Prefecture.