The present invention describes a process for the preparation of (((3aR, 6aS)-5-(4, 6-dimethylpyrimidin-2-yl) hexahydropyrrolo [3, 4-c] pyrrol-2 (1H)-yl) (2-fluoro-6-(2H-1, 2, 3-triazol-2-yl) phenyl) methanone, which can be used in commercial manufacturing. The compounds are orexin receptor modulators and are useful in pharmaceutical compositions and methods for treating disease states, disorders, and conditions mediated by orexin activity, such as insomnia and depression.