Titanium carbide (TiC) coatings were prepared on the surface of AlFeCoCrNiCu high-entropy alloy blocks using electro-spark deposition (ESD). The microhardness and corrosion resistance of the TiC coatings prepared under different voltage and capacitance process parameters were studied. The research shows that the maximum microhardness of the TiC coating on sample 4 (working voltage of 20 V, working capacitance of 1000 μF) is 844.98 HV, which is 81.5% higher than the microhardness of the substrate. This is because the deposition energy increases with the increase in voltage, and the adhesion and aggregation between the coating and the substrate are enhanced, increasing the hardness of the coating. It is worth noting that excessive deposition energy can increase surface defects and reduce the microhardness of the coating surface. Electrochemical testing analysis shows that the corrosion current density of the TiC coating is the lowest (9.475 × 10 -7 ± 0.06 × 10 -7 ), and the coating impedance is the highest (2.502 × 10 3 Ω·com 2 ). The absolute phase angle value is the highest (about 72°). The above indicates that the TiC coating prepared with a working voltage of 20 V and a working capacitance of 1000 μF has better microhardness and corrosion resistance.