In this report, TiN nanocrystalline thin films were deposited on glass and Ti-6Al-4V substrates using a DC-magnetron sputtering technique. The TiN films were sputtered using a pure Ti target (99.9%) with 40W of power in Ar/N2 gas mixture atmosphere. The structure of the TiN films was characterized by X-Ray diffraction, as prepared films exhibited a (200) preferred orientation, while film annealed at 500 °C shows the (111), (200) and (311). Polycrystalline, cubic, (111)-orientated TiN films were produced by annealing temperature of 500 °C. The effect of deposited temperature on the microstructural morphologies of the thin films was studied by Field Emission Scanning Electron Microscope (FESEM). The particle size of the sputtered TiN films ranged from 50 to 70 nm and was strongly influenced by annealing temperatures, the morphology of the films deposited before and after annealing has a characteristic agglomeration of particles. Potentiodynamic polarization analysis of the TiN films confirms the inverse relationship between polarization resistance and corrosion current. The biocorrosion measurements for TiN films deposited on the Ti-6Al-4V substrate in 3.5% NaCl solution have also been obtained. Clear improvement in the corrosion resistance was observed rather than for untreated, especially for thermally annealed (500 oC) TiN/Ti-6Al-4V samples. The corrosion rate was 0.1458 mm/y for the uncoated sample, while 2.68510-4 mm/y for TiN/Ti-6Al-4V in samples after annealing. The average corrosion potential calculated was - 0.117 V. The results confirmed that coated alloys with 500 °C thermally treated exhibited a better electrochemical behavior compare with uncoated and non-thermally treated alloys possibly due to the better cohesion degree of the coatings.