The structural and magnetic properties of the DyCo4−xFexGa compounds with x=0, 0.5, 1, and 1.5 have been investigated by X-ray diffraction and magnetic measurements. Powder X-ray diffraction analysis reveals that each of the DyCo4−xFexGa compounds has a hexagonal CaCu5-type structure (space group P6/mmm). The Fe solubility limit in DyCo4−xFexGa is x<1.5. The higher the value of x, the larger the unit-cell parameters a, c, V, and the 3d-sublattice moment but the smaller the 3d uniaxial anisotropy. Magnetic measurements show that the Curie temperature of DyCo4−xFexGa increases from 498 K for x=0 to 530 K for x=1.5, the compensation temperature Tcomp decreases from 286 K for x=0 to 238 K for x=1.5, and the spin-reorientation transition temperature increases from 403 K for x=0 to 530 K for x=0.5. No spin-reorientation transition was found in the samples with x=1.0 and 1.5. The saturation magnetization of DyCo4−xFexGa measured at 173 K increases but the magnetization measured at 300 K decreases with increasing Fe content x.