CrNx film was widely used in mechanical engineering field because of its excellent anti-wear and corrosion resistance properties. While most of research was focused on mechanical properties, little attention had been paid to the corrosion resistance and residual stress of CrNx film . In this paper, CrNx films were deposited on silicon wafer (100) and iron substrate by unbalanced magnetron sputtering system (UBMS) at different N2 flow. Then the structure, thickness, residual stress, micro-hardness, wear-resistance and anti-corrosion properties of CrNx films were investigated. The results showed that the phase composition of CrNx films transformed from Cr, single phase Cr2N, Cr2N and CrN coexist to single CrN with the N2 flow rate increasing. The CrNx films composed with Cr2N phase, which deposited at 6 sccm N2 flow, had the highest microhardness and had higher compressive residual stress. Whereas the CrNx films with CrN and Cr2N phase coexist had the best wear and corrosion resistance.