The Gadamagah Temple, with a history of 12,000 years, is carved into the heart of a mountain near the Badamyar village, 7 kilometers southeast of Azarshahr. This site was used as a temple for the Mithraic religion during the pre-Islamic period.
According to Saad News, this dome-shaped temple was used as a gathering place for mystics and dervishes during the 6th to 8th centuries AH, and later as a mosque.
Some archaeologists trace it back to the pre-historic period, later transforming it into a fire temple, and eventually, with the addition of a mihrab facing the qibla, it became an Islamic place of worship.
Next to the dome-shaped temple and mosque in the village of Gadamagah, Azarshahr, there is also a historical cemetery. This cemetery is located on a hill and features inscriptions, carvings, and various statues. The inscriptions and tombstones are written in the "Kufi" and "New Thuluth" scripts.
The village of Badamyar, locally known as Gadamagah, is located about 7 kilometers southeast of Azarshahr.