The invention discloses a full-inorganic interior and exterior wall coating and a preparation method thereof in the technical field of inorganic coatings. The full-inorganic interior and exterior wallcoating comprises the following raw materials by weight: 20-30 parts of a potassium silicate solution, 10-25 parts of silica sol, 30-40 parts of calcium carbonate, 15-25 parts of a barium chloride solution, 10-15 parts of a sodium phosphate solution, 10-15 parts of pigment, 5-8 parts of an assistant, 25-30 parts of deionized water and 1-2 parts of a thickening agent. The silica sol is added intothe potassium silicate solution, nano titanium dioxide particles in the silica sol are uniformly dispersed in the potassium silicate solution, the nano titanium dioxide itself has excellent corrosionresistance and high hardness, and the coating contains the nano titanium dioxide, so that the corrosion resistance and strength of the coating are improved; the barium chloride solution is added intoa suspension of calcium carbonate and sodium phosphate, the sodium phosphate and barium chloride react to generate barium phosphate precipitate, the barium phosphate precipitate coats the outer surfaces of calcium carbonate particles, dissolution of calcium carbonate is inhibited, and the corrosion resistance of the coating is greatly improved.