The present invention provides a class of compounds inhibiting TDG activity. Specifically, the present invention provides a compound having a novel structure as shown in formula I. The small molecule inhibitor of the present invention has an excellent inhibitory effect on TDG.