The invention relates to a 1,2,3,4-tetrahydro-9H-pyridino[3,4-b]indole transient receptor potential vanilloid 1 (TRPV1) antagonist or a pharmaceutically-acceptable salt thereof. The structure generalformula is shown in the specifications, in the formula, R is H, or F, or Cl, or Br, or I, or CF3, or methyl, or isopropyl, or tertiary butyl, or cyclopropyl, or propenyl, or acetenyl, or hydroxyl, orphenoxyl, or acetyl or phenyl; n is 1, or 2 or 3; L is triazole, or tetrazole, or carbamido or thioureido; Ar is phenyl, or pyridyl, or isoquinolyl, or quinolyl or pyrimidyl. Through tests, it is found that 1,2,3,4-tetrahydro-9H-pyridino[3,4-b]indole compounds have good TRPV1 inhibitory activity, and the activity of part of the compounds is far higher than that of a TRPV1 receptor antagonist BCTC;compared with the BCTC, the side effect of body temperature increasing is almost avoided. Therefore, the 1,2,3,4-tetrahydro-9H-pyridino[3,4-b]indole compounds as shown in the general formula and medicinal salts thereof are safe and effective and have a high analgesic effect.