The invention relates to 3-heterocyclyl indolyl compounds capable of inhibiting the interaction between p53, or variants thereof, and MDM2 and/or MDM4, or variants thereof, respectively, said compounds having the formula (I) wherein R, R, R, R, R, Y and Y are as defined in the specification. Due to their activity, the compounds are useful in the treatment of various disorders and diseases mediated by the activity of MDM2 and/or MDM4, or variants thereof, such as inflammatory or proliferative diseases or in the protection of cells.