A method of producing olmesartan medoxomil comprising a stage in which trityl olmesartan medoxomil (i) is produced by reacting olmesartan with trityl halide and then (ii) reacting it with DMDO halide, in a solvent in the presence of a base, in which water is present in the reaction mixture in the tritylation stage (i) and the esterification stage of DMDO (ii), and the water content in the reaction mixture is 0.3% (w / w) or higher.Un procedimiento de producción de olmesartán medoxomil que comprende una etapa en la que se produce tritil olmesartán medoxomil (i) haciendo reaccionar olmesartán con haluro de tritilo y después (ii) haciéndolo reaccionar con haluro de DMDO, en un disolvente en presencia de una base, en la que está presente agua en la mezcla de reacción en la etapa de tritilación (i) y la etapa de esterificación de DMDO (ii), y el contenido de agua en la mezcla de reacción es 0,3 % (p/p) o superior.