The invention relates to: pyrrolidine compounds of formula (I), pharmaceutically acceptable derivatives and compositions containing thereof, preparation process and usage thereof in medicine. The compounds are useful at EP2-mediated conditions treatment, such as endometriosis, uterine fibroids (leiomyomata), menorrhagia, adenomyosis, primary and secondary dysmenorrhoea, chronic pelvic pain syndrome, polycystic kidney disease and polycystic ovarian syndrome.