The invention relates to an electric four-way plug valve. The technical scheme includes that the electric four-way plug valve comprises a valve, a main feed inlet, a side feed outlet I, a side feed outlet II, a bypass outlet, a plug, a valve stem, a valve bonnet, a support, a packing gland, packing box blowing devices, a valve cavity blowing device, an electric head, a worm, a worm gear, an upperfriction disc, a lower friction disc, a transmission lead screw, a disc spring and a connector. The electric four-way plug valve has the advantages that the electric four-way plug valve is positionedon a coke tower bottom oil inlet pipeline of a device and is used for switching the flow directions of raw oil, accordingly, the raw oil from a heating furnace can be assuredly timely switched from acoke tower filled with coke to another preheated coke tower to continue to be operated, the device can be continuously and stably operated, is easy to electrically control, low in steam consumption, simple in structure and convenient to operate, and the manufacturing cost and the production and operation costs of the device can be reduced to a great extent.