The present invention relates to novel dihydropyridine derivatives of formula (I): as modulators of nuclear receptors selected from androgen receptor and glucocorticoid receptor, to processes for their preparation, to pharmaceutical compositions comprising said compounds and to the use of said for manufacturing a medicament for the treatment of pathological conditions or diseases that can improve by modulation of androgen receptor and/or glucocorticoid receptor, selected from cancer, metastasizing cancers, benign prostate hyperplasia, polycystic ovary syndrome (PCOS), hair loss, hirsutism, acne, hypogonadism, muscle wasting diseases,cachexia, Cushing's syndrome, anti-psychotic drug induced weight gain, obesity, post-traumatic stress disorder and alcoholism.