The coatings were produced on Ti6Al4V by laser-cladding the mixture of Ni-based alloy and different contents of TaC (0 wt%, 5 wt%, 10 wt%, 20 wt%, 30 wt%, 40 wt%). The microstructure and corrosion behavior of the coatings were investigated in detail. The coating without TaC is composed of TiNi/Ti2Ni (matrix) and TiC/TiB/TiB2 (reinforcement). Moreover, TaC is precipitated again and TiC/TiB/TiB2 solid solutions containing Ta are formed in the coatings. Corrosion potential of the coatings (− 0.639, − 0.636, − 0.547, − 0.534, − 0.471 and − 0.348 V) increases, and passive current density (1 × 10−5.4, 1 × 10−5.6, 1 × 10−6.4, 1 × 10−6.8, 1 × 10−6.7 and 1 × 10−6.9 A·cm−2) decreases. The passive films are more difficult to break down (breakdown potential of 0.003, 0.080, 0.204 and 0.605 V). When the content of TaC exceeds 20 wt%, no breakdown phenomenon is observed. The passive film on the surface of coating without TaC is mainly composed of TiO2, Al2O3, Cr2O3, CrO3, NiO, Ni2O3 and SiO2. After the addition of TaC, Ta2O5 is formed in the passive films. The content of Ta2O5 presents an increasing trend with the increase in the content of TaC. The addition of TaC has a positive effect on corrosion resistance of the coatings.