Provided are a self-cleaning coating, a self-cleaning fiber, a self-cleaning carpet and uses thereof. The self-cleaning coating is provided with a porous structure where pores communicate with one another; the volume of the pores comprised in the coating makes up 20%-98% of the total volume of the coating; and the pore diameter of the pores in the porous structure is between 0.5nm-50nm. The self-cleaning coating is mainly prepared from host materials; the host materials are one or more of titanium oxide, zirconia, titanium nitride, silicon oxide, tungsten oxide, g-C3N4 semiconducting polymer,perovskite semiconductor, silver, iron, gold, aluminum, copper, zinc, tin and platinum. The self-cleaning coating has a strong self-cleaning effect and can markedly prolong the service life of a corresponding product.