[CH:1]#[C:2][C:3]1[CH:4]=[CH:5][CH:6]=[C:7]([NH:9][C:10]2[N:19]=[CH:18][N:17]=[C:16]3[C:11]=2[CH:12]=[C:13]2[O:29][CH2:28][CH2:27][O:26][CH2:25][CH2:24][O:23][CH2:22][CH2:21][O:20][C:14]2=[CH:15]3)[CH:8]=1.[ClH:30]>C(O)C>[CH:1]#[C:2][C:3]1[CH:4]=[CH:5][CH:6]=[C:7]([NH:9][C:10]2[C:11]3[C:16](=[CH:15][C:14]4[O:20][CH2:21][CH2:22][O:23][CH2:24][CH2:25][O:26][CH2:27][CH2:28][O:29][C:13]=4[CH:12]=3)[N:17]=[CH:18][N:19]=2)[CH:8]=1.[ClH:30]Icotinib (500 mg) was added into 100 mL of reaction flask and dissolved with 30 mL of ethanol. Hydrogen chloride gas was added while stirring. After its completion, the reaction mixture was filtered to give crude product. The crude product was further purified by recrystallization with isopropyl alcohol to give Icotinib hydrochloride (515 mg).