The invention discloses a nitride ceramic coating applied to a lithium ion battery. The nitride ceramic coating consists of the following components in parts by weight: 2-10 parts of adhesive, 10-40 parts of nitride ceramic particles, 0.5-3 parts of thickening agent, 0.05-2 percent of dispersing agent and the balance of solvent. The nitride ceramic coating is prepared by the following steps: (1) preparing slurry, namely uniformly mixing and stirring the solvent, the dispersing agent and the thickening agent, standing, defoaming, adding the nitride ceramic particles, uniformly dispersing and forming slurry A; (2) dispersing at high speed, namely dispersing the slurry A at high speed, then adding the additive, uniformly stirring, performing vacuum defoaming, and screening to form slurry B; (3) coating, namely coating the slurry B on an edge of the anode and/or the surface of the cathode and/or a diaphragm in the lithium ion battery, and drying at the temperature of 60-120 DEG C. According to the nitride ceramic coating, the liquid absorption capacity and liquid retaining capacity of the diaphragm or the pole piece can be effectively improved, the hydrofluoric acid resistance and thermal shock resistance of the pole piece or the diaphragm are improved, and a better heat barrier effect is achieved.