The invention relates to fungicides and can be used for treating diseases caused by fungi, and also for preventing damage to various materials and agricultural products by fungi. The fungicide is a 2,4-dioxo-5-(2- hydroxy-3,5-dichlorobenzylidiene)amino-1,3-pyrimidine salt of general formula: (A) or a dimer thereof: (B), where X is selected from the series consisting of: Na+, K+, Li+ and NH4+. An effective preparation having anti-fungal activity with a broad spectrum of action is created.