The invention provides an environment-friendly coating which is composed of, by weight, 15-20 parts of organic silicon resin, 10-15 parts of polydimethylsiloxane, 10-15 parts of distilled water, 6-10 parts of asphalt, 8-10 parts of magnesium stearate, 5-7 parts of diethylene glycol butyl ether, 4-6 parts of tributyl citrate, 4-6 parts of fragrant material, 2-3 parts of calcium carbonate, 2-3 parts of talcum powder, 1-2 parts of rare earth ions, 1-2 parts of dispersant, 1-2 parts of oleic acid, 1-2 parts of film forming aid and 1-2 parts of antioxidant. The fragrant material and the rare earth ions are added into raw materials of the environment-friendly coating, the coating coated on a building is enabled to emit fragrance through the fragrant material to play a role in insect expelling, and the coating is enabled to have sterilizing effect through the rare earth ions, so that the sterilizing effect of the coating is improved, damage to performance of the coating caused by bacteria is lowered, service life of the coating is prolonged, and environment friendliness is improved; the coating does not contain formaldehyde and formaldehyde-releasing substances, so that environment-friendly performance is improved, and application range of the coating can be expanded.