gel processesPhotoluminescenceMagnetic propertyFe doped hexagonal ZnO powders got by sol–gel.•With increase of Fe content, the crystal quality of Zn1−xFexO became worse.•The sample with 4% Fe doped has the biggest IUV/Ivis, corresponding to the best optical property.•Room temperature ...