The invention provides a method for separating and purifying salts in the 2,4,5-triamino-6-hydroxy pyrimidine sulfate production process. The method comprises the following steps that: guanidine nitrate, ethyl cyanoacetate and sodium methoxide serving as raw materials are subjected to a condensation reaction to generate condensate 2,4-diamino-6-hydroxypyrimidine, methanol and sodium nitrate; the condensate 2,4-diamino-6-hydroxypyrimidine, sodium nitrate and sulfuric acid serving as raw materials are subjected to a nitrosation reaction to generate a nitrosified substance 2,4-diamino-5-nitroso-6-hydroxypyrimidine, sodium sulfate and water. According to the method, firstly, after the condensation reaction, sodium nitrate is separated, and purification is carried out; then, sodium sulfate is separated in the nitrosation reaction, and purification is carried out; and byproducts of industrial sodium nitrate and industrial sodium sulfate meeting the national standard are reclaimed, so that hazard waste output is eliminated, wastewater drainage is reduced, salt content in wastewater is reduced, and process wastewater biological treatment is benefited.