The present disclosure relates to indole derivatives of the formula (I) which are cannabinoid type 1 receptor modulators and which are useful in the treatment of diseases in which modulation of the receptor is beneficial to processes for their preparation to pharmaceutical compositions comprising them and to methods of using them.