Experimental syntheses of two iron polyhydrides FeHx(I) and FeHx(II) have been carried out in diamond anvil cells by laser heating of metallic iron to temperatures of about 700 and 2000 K at pressures of 178 and 195 GPa, respectively. The initial sample is an iron plate enriched in the Fe-57 Mössbauer isotope placed in ammonia borane (BH3NH3). The electronic properties of FeHx compounds have been studied by measuring the electrical resistance R(T) at high pressures (180–216 GPa) in the temperature range of ~8–300 K. Based on the obtained R(T) data, two superconducting phases of FeHx compounds with the maximum critical transition temperatures Tc ≈ 25.0 and 27.7 K have been identified. It has been found that with increasing pressure, the temperature Tc in both hydrides increases linearly with the coefficients dTc/dP ~ 0.063 ± 0.001 K/GPa and 0.056 ± 0.003 K/GPa for the FeHx(I) and FeHx(II) phases, respectively. Superconductivity in iron hydrides revealed by the measured resistance R(T) has been confirmed by a number of additional methods.