Abstract The magnetic valve is one of important parts in automation irrigation system. In order for the magnetic valve to run normally, it must have well waterproof antirust function. The principle of the antirust magnetic valve simply is introduced. Then design of construction and selection of material for the electromagnet of antirust magnetic valve fully are expounded. In the end, attention point of calculation for electromagnet coil is given. The experiments show that the above plan can satisfy the requirement.