Oily sewage is one of the wastes produced in the oil industry production process and its quantity has been increasing year by year, which influences the environment and human health severely. Electric flocculation method is one of the wide application electrochemical treatment technologies for the oily wastewater treatment at home and abroad, which has higher efficiency than other technologies at the aspect of the organic pollutants degradation. A simulative experiment device dealing with heavy oil sewage by the electric flocculation method has been designed in this paper. The mechanism of the electric flocculation method in removing organic matter of the heavy oil sewage by analyzing the change of the composition and content of the organic matter in water samples before and after the process of the electric flocculation has been studied. Research results show: the carbon/tin dioxide electrode is better than the carbon/ ruthenium dioxide electrode in removing organic matter; most alkanes matters in the oily wastewater have been removed in the dispersing oil form by the electric flocculation; as the current density increases, the types and quantity of the response organic matter can be improved while types of the new synthetic organics increase. At the same time, this paper provides a theory support in specific optimization of the electricity flocculation flotation in oily wastewater treatment technology and process.