To improve the corrosion resistance of TiNi alloy fabricated by laser powder bed fusion (LPBF), a porous oxidation layer was synthesized by micro-arc oxidation in a sodium aluminate and sodium silicate electrolyte. The influences of the applied voltage and the processing time on the morphology of oxidation layer were investigated, and the corrosion behavior of the oxidation layer in artificial saliva was evaluated and compared with that of the as-fabricated LPBF alloy. The results indicate that, as increasing the applied voltage and the processing time, the oxidation layer becomes uniform and integrated. The optimum parameters are with an applied voltage of 450 V and processing time of 40 min. The oxidation layer primarily contains α-Al2O3 and consists of two layers, i.e., a thin, compact and uniform inner layer and a porous outer layer. The formation of stable α-Al2O3 phase in the coating and its almost non-porous dense structure reduce the channels for corrosion ions to penetrate into the substrate through coating, thereby improving the corrosion resistance of TiNi alloy.