, is a Shingon Buddhist temple in Kasai, Hyà Âgo Prefecture, Japan. Its mountain name (sangà Â) is . Emperor Shà Âmu ordered its construction in 745 (the 17th year of the Tenpyà  era) at the request of Gyà Âki, a Buddhist priest.
According to the temple records, the priest Gyà Âki received an oracle from a shrine, , instructing a temple to be built on these grounds. Gyà Âki took the request to Emperor Shà Âmu, who then ordered the construction of Sagami-ji. When finished in 745, it was named Sagami after the oracle's origins.
Inscriptions on temple plaques record later visits from various emperors and shà Âguns, including shà Âgun Tokugawa Ieyasu.
The building was badly damaged in the Heiji Rebellion of 1159, and later rebuilt. The main temple was burnt down in conflicts during 1578, and was not rebuilt until the daimyà  of Himeji, Honda Tadamasa, agreed to aid the Ikeda clan in its reconstruction.