The present invention relates to a process for the preparation of certain 1,5-benzothiazepine compounds, and in particular to a process for the preparation of elobixibat. The process can be carried out under mild and safe conditions and may be used to prepare elobixibat on an industrial scale. The invention also relates to a process for the preparation of a crystalline monohydrate of elobixibat.