A bioactive sodium titanate/titania graded film was formed in situ on NiTi shape memory alloy (SMA) by oxidizing in H(2)O(2) solution and subsequent NaOH treatment and characterized by scanning electron microscopy, Raman spectroscopy, X-ray diffraction, Fourier transform infrared spectroscopy, and X-ray photoelectron spectroscopy (XPS). The bioactivity of the film was investigated using a simulated body fluid (SBF) soaking test. A titania (TiO(2)) layer was first found on NiTi substrate after oxidized in H(2)O(2) solution, and then a porous sodium titanate (Na(2)TiO(3))/titania film with many Ti--OH groups and a trace of Ni(2)O(3) was formed by the reaction of partial TiO(2) phase with NaOH solution. After immersion in SBF for 12 h, apatite was observed to nucleate and grow on the film. With longer soaking time, more apatite appeared on its surface but our control experiments didn't reveal any apatite formation on the chemically polished NiTi SMA, which indicates the bioactivity of NiTi implants could be improved by the formation of the bioactive film. Moreover, XPS depth profiles of O, Ni, Ti, and Na show the bioactive film possesses a smooth graded interface structure to NiTi substrate, which is in favor of sufficient mechanical stability of apatite layer by subsequent deposition in SBF.