An intrinsically safe type electromagnet for underground hydraulic unloading valve was designed. The main technical indexes, performances and structure principle of the electromagnet were introduced, and selection of structure of the electromagnet was analyzed. The design of magnetic system of the electromagnet was expounded emphatically. The actual application showed that the electromagnet has features of small power, big suction and flexible action.