Disclosed are an indole-formamide derivative, a preparation method therefor and the use thereof in medicine. In particular, disclosed are an indole-formamide derivative as shown in general formula (I), a preparation method therefor, a pharmaceutical composition containing the derivative, and the use thereof as an ROR agonist and the use thereof for preventing and/or treating a tumour or cancer.