Abstract The epoxy/pani samples doped with a specified weight ratio of polyaniline pani ware prepare by casting method. Using different doses of gamma rays (0, 2, and 4 kGy) were used to irradiated the prepared samples. Irradiated and non-irradiated samples were imaged using a FE-scanning electron microscope and were found to have regular morphology, and irradiation had obvious effect on this morphology at 4 kGy. When studying the crystal structure of the samples, it was found the samples have a polycrystalline structure, and this structure tends to improve after irradiation, this was verified using X-ray diffraction. Likewise, D.C electrical conductivity increased with increasing gamma radiation doses. Also study the effect of irradiation with gamma rays on optical properties and demonstrate the clear effect of these rays on optical properties. It was also found that the optical energy gap with (indirect allowed transition) was decreases after the irradiation process. Together, these results indicate the possibility of using these samples in the manufacture of gamma dosimeters.