Lena Dunham, the star and creator of HBO's Girls, will be undergoing surgery after she was hospitalized Saturday for an ovarian cyst rupture, her spokesperson told BuzzFeed News in a statement.

The cyst rupture is connected with her fight with endometriosis, a painful disorder in which tissue that would normally line the inside of a uterus instead grows outside of it, according to the Mayo Clinic. It can cause severe pain and form cysts.

"Lena Dunham has been very public with her personal bouts with endometriosis," her spokesperson, Cindi Berger, said in the statement.

Just a few weeks earlier, she announced she was going through a particularly tough time with the illness.

In February, she said she would not be doing press conferences for the new season of Girls because she was "going through a rough patch with the illness and my body (along with my amazing doctors) let me know, in no uncertain terms, that it's time to rest."