Aluminum nitride films were deposited by alternating-current dual reactive magnetron sputtering. The influence of different nitrogen flow and working pressures at a sputtering power of 5 kW on the refractive index, extinction coefficient, crystalline structure, residual stress, and surface roughness of aluminum nitride films was discussed. The aluminum nitride film would have high refractive index, low extinction coefficient and small residual stress at suitable nitrogen flow rate and low working pressure. (C) 2011 Optical Society of America