To a solution of commercially available 5-methylthiophene-2-carboxylic acid (1.0 g, 7.04 mmol) and potassium carbonate (1.94 g, 14.08 mmol) in N,N-dimethylformamide (10 mL) was added ethyl iodide (1.65 g, 10.56 mmol) dropwise. The reaction mixture was stirred at room temperature for 2 hours. After completion of the reaction, the reaction was quenched with water and extracted with ethyl acetate. The organic layer was washed with saturated saline, dried over anhydrous sodium sulfate, filtered and concentrated to give ethyl 5-methylthiophene-2-carboxylate (400 mg, 34% yield) as a light yellow oil. Electrospray ionization mass spectrometry (ESI-MS) showed m/z 171 [M + H]+, which is consistent with the calculated value C8H10O2S. The intermediate can be used directly in the subsequent reaction without further purification or characterization.