The invention relates to a method for treatment of electroplating chromium-containing wastewater by periodic polarity reversal. The method adopts the steps of: adjusting the pH of electroplating chromium-containing wastewater to 5-7 and the conductivity to 500-2000micros/cm, then inserting pole plates, introducing direct current, carrying out electrocoagulation reaction and periodically reversing the pole plate polarity to electrolyze wastewater, then letting the mixed solution enter a sedimentation tank, recycling the supernatant, and using the precipitated floc as the raw material for preparation of alloy. Compared with the prior art, periodic polarity reversal adopted by the invention can make anode dissolved metal ions better diffuse into water, improves the mass transfer efficiency, alleviates concentration polarization, and can overcome the problems of low current efficiency, electrical energy waste, low treatment efficiency and the like caused by passivation, in addition by a mixed anode method, iron and aluminum metals can be dissolved at anode simultaneously, the floc undergoes coprecipitation, the flocculation effect is better, the effluent water is clear and transparent, has a chromium content of less than 0.01mg/L, and is recyclable.