Lena Dunham, the 29-year-old Girls star, was hospitalized on March 5 for a ruptured ovarian cyst that will require surgery.

"Lena Dunham has been very public with her personal bouts with endometriosis. This morning, she suffered from an ovarian cyst rupture and has been taken to the hospital," her spokesman, Cindi Berger, said in a statement to CNN. "Lena will be undergoing surgery at an undisclosed hospital. We thank you for your understanding and hope that Lena's privacy will be respected."

Endometriosis is a condition in which the tissue lining of the uterus grows outside of the uterus and causes pelvic pain.

Dunham has not been silent about her struggle with endometriosis, discussing it and raising awareness. On March 4, the day before Dunham was hospitalized, she discussed having endometriosis while raving about Gwyneth Paltrow's new beauty product line, Goop.

Dunham also spoke of her endometriosis when she went through a "rough patch" with it in February, causing her to take time too from press events for the new season of Girls, according to People Magazine.

The current season of Girls started in February. It will conclude with a seventh season next year.