The invention relates to an environment-friendly, flame-retardant, acid- and alkali-resistant coating for building materials, which is composed of the following components: phenyltriethoxysilane, lithium phosphate powder, sodium fatty acid, soybean oil, chlorothalonil, camellia powder, zinc sulfide Powder, jade powder, asbestos powder, hydrogenated nitrile rubber, aluminum distearate, sucrose, styrene-butadiene-styrene block copolymer, fluororubber, polyacrylonitrile fiber, hexahydrophthalic anhydride , n-butyl titanate, ethyl p-hydroxybenzoate, trichloroisocyanuric acid, menthol, 5-aminobenzimidazolone, tourmaline powder, molybdenum disilicide powder, ferric chloride, oxidized paraffin, aromatic oil, Tangerine Oil, Polyacrylic Emulsion, Hydroxyethyl Acrylate, Alkyl Diphenyl Phosphate. The product of the invention has relatively superior flame retardant, acid and alkali resistance, mildew resistance and antibacterial properties, and improves product performance.