The invention provides a compound of formula (I) or a pharmaceutically acceptable salt thereof, wherein Z, A, B, D, E, G, M1, M2, M3, M4, M5, M6, p, q, r, R3, R4, R5 and R6 are as defined in the specification. The invention also provides the use of such compounds in the treatment or prophylaxis of a condition associated with a disease or disorder associated with estrogen receptor activity.L'invention concerne un composé de la formule (I) ou un sel de qualité pharmaceutique associé, Z, A, B, D, E, G, M1, M2, M3, M4, M5, M6, p, q, r, R3, R4, R5 et R6 étant tels que définis dans la description. L'invention concerne également l'utilisation de tels composés dans le traitement ou la prophylaxie d'un état associé à une maladie ou à un trouble associé à une activité des récepteurs des œstrogènes.