The invention discloses a preparation method of idosaban and an intermediate thereof. The preparation method of the idosenban intermediate 4,5,6,7-tetrahydro-5-methyl-thiazolo[5,4-c]pyridine-2-carboxylic acid hydrochloride comprises the following steps: carrying out condensation reaction on 3-bromo-1-methyl-piperidine-4-ketone and thiooxamide ethyl ester in a solvent at the reaction temperature of 50-85 DEG C in the presence of alkali to generate the 4,5,6,7-tetrahydro-5-methyl-thiazolo[5,4-c]pyridine-2-carboxylic acid hydrochloride, and carrying out hydrolysis and hydrochlorination to obtain the intermediate. The invention also relates to a preparation method of the idosaban, including preparing the 4,5,6,7-tetrahydro-5-methyl-thiazolo[5,4-c]pyridine-2-carboxylic acid hydrochloride. Compared with existing methods in references, the method has the advantages of being short in reaction step, high in yield, simple in aftertreatment and the like, the reaction process is controllable, safety is high, and the method is suitable for large-scale production.