The invention discloses an antibacterial and antiviral inorganic ceramic interior wall coating and a preparation method thereof. The interior wall coating includes a primer and a finishing paint, wherein the primer comprises the following components in percentage by weight, on the basis of 100%: 10-15% of potassium silicate, 10-20% of silica sol, 5-10% of acrylic emulsion, 35-45% of filler, 1-2% of defoaming agent and the balance of deionized water; and the finishing paint comprises the following components in percentage by weight, on the basis of 100%: 15 to 20 percent of sol, 10 to 15 percent of methyltrimethoxysilane, 15 to 20 percent of silicone acrylic emulsion, 0.5 to 0.8 percent of 20 percent formic acid solution, 0.5 to 1 percent of graphene oxide, 8 to 10 percent of nano aluminum oxide, 12 to 15 percent of inorganic pigment, 0.5 to 1 percent of p-tert-butylcatechol, 2 to 3 percent of methanol and the balance of deionized water. The coating is safe and environment-friendly, has excellent water resistance, air permeability, water impermeability and excellent mildew-proof effect, dust is not easy to fall on a wall veneer, stains are not easy to adhere to the wall veneer, the coating is easy to clean, the scrubbing resistance can reach more than 100,000 times, and the coating has lasting antibacterial and antiviral capabilities.