Self-etching primer is a type of primer used to prepare a metal surface for painting. It is applied before painting to help the paint adhere to the surface and prevent rusting. The self-etching primer contains an acidic compound. That etches the surface of the metal, providing a rougher surface for the paint to adhere to. It also helps prevent corrosion by providing a barrier between the metal and the environment.