It is necessary to suppress harmonics because of electric railway traction power supply system has serious harmonic problems. This paper has established averaging model, and the robustness of active power filter is analyzed based on the H-infinity control theory. Simulation results show that electrified railway harmonic control effect is good based on H-infinity control. And it has the fairly good stability and robustness.