The invention relates to a coking wastewater optimizing treatment process and device. The process is as follows: light oil and heavy oil contained in the coking wastewater are firstly removed in an oil separator; then air flotation treatment is carried out to reduce ammonia nitrogen; water distribution is carried out in a regulating tank; after water distribution, 70% of the coking wastewater is introduced into an aerobic tank 1, and 30% of the coking wastewater is introduced into an anaerobic tank; after the coking wastewater is subjected to treatments in the aerobic tank 1, a sedimentation tank I, the anaerobic tank, an aerobic tank 2, a sedimentation tank II, a coagulative precipitation tank and a deep treatment tank in sequence, the quality of the final effluent is as follows: COD is lower than 80 mg/L, ammonia nitrogen is lower than 10 mg/L, volatile phenol is lower than 0.3 mg/L, cyanogen is lower than 0.2 mg/L, oil and suspended solids are basically removed, and water quality indicators meet the discharge standards. According to the invention, the process route is short, the equipment investment cost is low, the processing efficiency is high, the effect is stable, energy conservation and cost reduction are achieved, and economic and social benefits are remarkable.