Credit: Jason Merritt/Getty Images

Lena Dunham was taken to a hospital on Saturday and will undergo surgery for a ruptured ovarian cyst.

“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,” a representative for Dunham said in a statement provided to EW. “Lena will be undergoing surgery at an undisclosed hospital. We thank you for your understanding and hope that Lena’s privacy will be respected.”

The Girls creator and star said last month that she wouldn’t be doing press for the fifth season of the HBO series (which premiered Feb. 21) because of endometriosis, a chronic condition.

“I am currently 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,” she wrote at the time. “That’s a hard thing to do, but I’m trying, because all I want is to make season 6 of Girls the best one yet … So many women with this disease literally don’t have the option of time off and I won’t take it for granted.”

Dunham also wrote about living with endometriosis last November in an essay for her Lenny Letter newsletter, where she defined the condition as “when the tissue that lines the uterus grows in other places in the body.”

“All along the way, a massive fear of mine was ‘being discovered,’ that someone would decide I wasn’t strong enough for my work or my life because of what I dealt with physically and emotionally,” she said. “But I am strong because of what I’ve dealt with. I am oddly fearless for a wimp with no upper-body strength. And I am no longer scared of my body. In fact, I listen to it when it speaks. I have no choice but to respect what it tells me, to respect the strength of its voice and the truth of my own.”