The invention discloses a method for preparing a titanium carbide coating through pulse electrodeposition. The method comprises the following steps: through taking a substrate as a cathode, taking graphite as an anode and a carbon source and taking nickel as a reference electrode, melting a titanium source into a salt mixture; reacting for 0.5-2h under the protection of inert gas, at a temperature of 800-950 DEG C and under a pulse voltage of 2.5-3V, thus forming a titanium carbide coating on the substrate. According to the invention, deposition is performed by using a molten salt electro-deposition method without use of large equipment and precious materials, therefore, the method is low in cost and simple in operation; and in the reaction process, no harmful gas is required, and no harmful substance is produced, therefore, the method is environment-friendly; and a titanium carbide coating prepared by using the method disclosed by the invention is dense and good in performances.