The invention relates to the pharmaceutical synthesis field and discloses N-(naphthoxyalkyl)heteroarylpiperidine compounds and a preparation method and applications thereof. The compounds disclosed by the invention are the compound shown in the formula I and pharmaceutically acceptable acid addition salts thereof, wherein n is 0, 1, 2 or 3; R is acetamino, acetoxy, acethythio, oximido, amino, aminocarbonyl, dimethylamino, diethylamino, hydroxyl, trifluoromethyl, trifluoroacetyl, cyano, phenyl, aldehyde group, benzoyl, fluorine, chlorine, bromine or iodine. The preparation method is as follows: 7-methoxynaphthalene compound used as raw material and 6-fluoro-3-(4-piperidyl)-1,2-benzoisoxazole are used to perform N-alkylation reaction. The N-(naphthoxyalkyl)heteroarylpiperidine compounds can act on 5-HT2A receptor, dopamine D2 receptor and melatonin receptor, are the compounds with the multi-target function and have the antipsychotic function.