The invention relates to a veterinary foam cleaning agent and a preparation method thereof which are applicable to animal stalls, hatching houses, farm utensils, vehicles passing in and out and the like. The veterinary foam cleaning agent is prepared from, by mass, 20%-32% of surfactant compound components, 2%-3% of detergent assistant, 4%-6% of chelating agent, 1.5%-2% of corrosion inhibitor, 3%-4% of foam stabilizer, 0.5%-2% of dispersing agent, 5%-6% of solubilizer and the balance purified water, and the sum of the contents of the components is 100%; the surfactant compound components are prepared from 3%-5% of anionic surfactant I, 2%-5% of anionic surfactant II, 8%-12% of nonionic surfactant I and 7%-10% of nonionic surfactant II. According to the veterinary foam cleaning agent, it is finally proved through the foaming effect and decontamination effect of a breeding field that the foaming effect is good, and foam is rich, exquisite, high in adhesivity and long in adhesive time; meanwhile, the decontamination effect is excellent, and stubborn stains such as hard stool, grease, the blood and biological membranes can be effectively removed.