Electric control box used for controlling electromagnetic valve

The invention discloses an electric control box used for controlling electromagnetic valve, which comprises a body provided with an inner cavity. The body comprises an upper cover and a lower cover which are openable, the upper cover is detachably provided with a first circuit board arranged in the inner cavity of the body, and the lower cover is detachably provided with a second circuit board and a third circuit board which are separately arranged in the inner cavity of the body. The first circuit board, the second circuit board and the third circuit board are connected through connecting wires. By the aid of the above structure, accumulation of heat can be reduced, the service livers of appliance devices are prolonged, and the circuit boards can be detached and replaced conveniently so that the electric control box can be used normally as soon as possible.