The invention discloses a diagnosis of endometriosis, by determining a level of miR-199a-5p as a biomarker to diagnose endometriosis. The invention also discloses a treatment of endometriosis, by administering pre-miR-199a to a subject in need thereof in a dosage of 4 to 8 mg/per kilogram of body weight per 1 to 3 days for 4 weeks to inhibit the processes of endometriosis development.