A deuterium atom-substituted indole formamide derivative, a preparation method therefor, and medical applications thereof. Specifically, the present invention relates to a deuterium atom-substituted indole formamide derivative represented by general formula (I), a preparation method therefor, a pharmaceutical composition containing the derivative, and uses of the derivative serving as an ROR agonist and uses of the derivative in preventing and/or treating tumors or cancers, definitions of substituent groups in general formula (I) being same as definitions in the specification.