The present invention discloses a TRPV3 small molecule allosteric inhibitor and a preparation method thereof. The small molecule inhibitor comprises compounds represented by a general formula (I) anda general formula (II) shown in the specification or pharmaceutically acceptable salts thereof, wherein X is selected from N or C, Y is selected from (CH2) or (CO); R2 is selected from hydrogen and halogen; R4 is selected from C1-C8 alkyl groups, C3-C8 cycloalkyl groups, a naphthalene ring, an adamantyl group, morpholine, 4-(methylsulfonyl) piperazine and 4-(trifluoromethyl)pyridine-2-amine; and R1 and R3 are respectively and independently selected from hydrogen, deuterium, halogen, hydroxyl, sulfydryl, cyano, nitro, C1-C8 alkyl, halogenated C1-C8 alkyl, C1-C8 alkoxy, C3-C8 naphthenic bases, C3-C8 cycloalkenyl, C2-C8 alkenyl, C2-C8 alkynyl, C6-C10 aryl, C3-C10 heteroaryl and C4-C8 heterocyclic radical.