The experimental device for generation of undulator radiation in terahertz wavelength region by use of undulator with ferromagnets is created. The device is based on a beam of a microtron with the energy 7.5 MeV. The radiation wavelength is 200 μ. Registered spontaneous radiation has a power 10-6 W at a current of a beam 2 mA in a pulse. With the optical resonator, in a mode, the amplification of 6% is received, that in sometimes is more than the expected value. This effect is explained as a result of partial coherence of radiation. [ABSTRACT FROM AUTHOR]