The invention discloses trimetazidine and a production method of hydrochloride thereof, which belongs to the technical field of chemical synthesis and is characterized by adopting 2,3,4-3-methoxybenzaldehyde and piperazine as raw materials. The method comprises the following steps of: adding a solvent, 2,3,4-3-methoxybenzaldehyde and anhydrous piperazine with the molar ratio of 1:1 to 1:3, and a nickel-based catalyst accounting for 3 to 10% of the mass percentage of the 2,3,4-3-methoxybenzaldehyde and the anhydrous piperazine to a pressure kettle; using nitrogen for purging before hydrogen isled in, with hydrogen pressure maintained within the range of 0.7MPa to 2.0MPa, reaction temperature within the range of 50 DEG C to 95 DEG C, reaction time within the range of 4 hours to 10 hours, and pH value regulated to 3 to 4; separating out organic phase; and recovering the solvent. The water phase is washed with chlorinated hydrocarbon extraction, and the pH value is regulated to 12, then the water phase is extracted with aromatic hydrocarbon, and the aromatic hydrocarbon in the aromatic hydrocarbon extraction liquid is steamed out, thus obtaining the trimetazidine. The invention has the advantages of low production cost, high yield, and good environmental protection.