The invention discloses a repetitive-control-based method for controlling a compensation current of a DSTATCOM (Distribution Static Synchronous Compensator). The method comprises the following steps of: (1) acquiring a grid voltage, a load current and the compensation current; (2) extracting current commands from the load current; and (3) carrying out repetitive control and PI (Proportional-Integral) control according to the current commands, and then, outputting voltage commands to the DSTATCOM. According to the repetitive-control-based method for controlling the compensation current of the DSTATCOM, the no-static-error tracking of the low-order harmonics, comprising fundamental harmonics, of the DSTATCOM can be achieved, the compensation accuracy of the DSTATCOM is improved, the compensation bandwidth of the DSTATCOM is increased, and the compensation capability and accuracy of the DSTATCOM with unbalanced loads are improved, so that the DSTATCOM can have harmonic compensation and suppression capabilities, the use of passive filters at the outlet side of the DSTATCOM is reduced, the harmonic performance of the compensation current of the DSTATCOM is improved, the harmonic output is reduced, and the pollution to a power grid is reduced.