The invention discloses an active power filter (APF) and thyristor switched filter (TSF) hybrid compensation device for an electric rig, which comprises a passive part, an active part, an electric quantity data acquisition module of a well site and the compensation device, a control module of a TST, and a control module of an APF. The filtering characteristics of the TSF are improved by utilizing the APF, so that when the TSF works in a combined manner, 2 to 10 times of harmonic currents injected into a power supply system of the well site are controlled within a given value, and the harmonic currents of the well site are prevented from being amplified when different filtering branches of the TSF are switched in a combined manner; and by adopting the structure that the APF is connected in parallel with a fundamental resonance module of a fifth filtering branch of the TSF through a coupling transformer, the capacity of the APF is very small, so that the APF is beneficially controlled, the cost of the whole set of device is reduced, the problem of overlarge harmonic currents occurring when the TSF is switched in a combined manner is effectively solved, and then the tasks of reactive compensation and harmonic elimination of the well site can be completed more safely and more effectively.