The cobalt-based alloy coating with different Co contents was deposited on 45 steel by electro-spark deposition with the self-made electrode. The coating has a compact and uniform microstructure with low porosity and no visible microcracks. When Co content increases grad- ually, oxygen content of coating samples 1-5 decreases first and then increases in the range of 2.52 wt%-3.05 wt%; sample 3 has the lowest oxygen content of 2.52 %. Mi- crohardness of the coating is improved remarkably com- pared with the substrate (HV 230.18). With Co content increasing, microhardness of the coating samples 1-5 first rises slightly and then declines rapidly in the range of HV 580.61-1052.33. Sample 3 gets the maximum of HV 1052.33, which is about 4.6 times that of the substrate. The coating presents excellent wear resistance, which first increases and then decreases when Co content increases. Sample 3 shows the best wear resistance of about 6.4 times that of the substrate. Main wear mechanism of the coating is abrasive wear and fatigue wear, along with oxidation wear under high speed or heavy load conditions.