LOS ANGELES, CA - SEPTEMBER 17:  Emilia Clarke attends the 70th Emmy Awards at Microsoft Theater on September 17, 2018 in Los Angeles, California.  (Photo by Matt Winkelmeyer/Getty Images)
Matt Winkelmeyer/Getty Images
LOS ANGELES, CA - SEPTEMBER 17: Emilia Clarke attends the 70th Emmy Awards at Microsoft Theater on September 17, 2018 in Los Angeles, California. (Photo by Matt Winkelmeyer/Getty Images)
Now playing
01:07
'Game of Thrones' star describes battling for her life
ABC/Fremantle North America/19 Entertainment
Now playing
01:27
Katy Perry consoles 'Idol' contestant after he flubs lyric
John Oliver addressed the recent fatal police shootings of Daunte Wright and Adam Toledo in a passionate monologue on "Last Week Tonight."
Last Week Tonight/HBO
John Oliver addressed the recent fatal police shootings of Daunte Wright and Adam Toledo in a passionate monologue on "Last Week Tonight."
Now playing
01:38
John Oliver to White Americans: 'March in the streets'
Consumer Product Safety Commission
Now playing
01:08
Video shows child getting caught under Peloton treadmill
CNN
Now playing
02:56
Watch Anderson Cooper belly laugh with Cheri Oteri
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
CNN
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
Now playing
03:56
'Get a little uncomfortable': See Brooke Baldwin's last words on air
Now playing
05:18
Anderson Cooper explains how he overcomes being shy
US Navy
Now playing
01:28
Pentagon confirms UFO video is real, taken by Navy pilot
Now playing
02:35
WWII veteran: End of the war was 'the biggest thrill of my life'
Now playing
01:24
How Kyra Sedgwick got the cops called on Tom Cruise
Fancy Feast/Purina
Now playing
01:06
Cat food company makes a cookbook ... for humans
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
Twitter | @brady9dream
Now playing
02:10
Pet owners pitch their pups to be dog brew's 'Chief Tasting Officer'
FOX/"The Masked Singer"
Now playing
01:23
'The Masked Singer' reveals identity of The Orca
LONDON, ENGLAND - DECEMBER 07:  A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs.  (Photo by Dan Kitwood/Getty Images)
Dan Kitwood/Getty Images
LONDON, ENGLAND - DECEMBER 07: A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs. (Photo by Dan Kitwood/Getty Images)
Now playing
03:10
Bitcoin has an energy problem
The new all-electric Mercedes-EQS
Mercedes-Benz AG
The new all-electric Mercedes-EQS
Now playing
01:05
See the new all-electric EQS luxury sedan from Mercedes
(CNN) —  

Emilia Clarke revealed on Thursday that she has undergone two brain surgeries in the last eight years.

The “Game of Thrones” star made the revelation in a story she wrote for the New Yorker. She said her health problems began in 2011.

“My trainer had me get into the plank position, and I immediately felt as though an elastic band were squeezing my brain,” she wrote in the article. “I tried to ignore the pain and push through it, but I just couldn’t. I told my trainer I had to take a break. Somehow, almost crawling, I made it to the locker room. I reached the toilet, sank to my knees, and proceeded to be violently, voluminously ill. Meanwhile, the pain shooting, stabbing, constricting pain was getting worse. At some level, I knew what was happening: my brain was damaged.”

She went on to write, “The diagnosis was quick and ominous: a subarachnoid hemorrhage (SAH), a life-threatening type of stroke, caused by bleeding into the space surrounding the brain. I’d had an aneurysm, an arterial rupture. As I later learned, about a third of SAH patients die immediately or soon thereafter.”

She ended up going through a three-hour surgery and then spent four days in the ICU.

Two years later, Clarke’s doctors found a second aneurysm that required another surgery.

“When they woke me, I was screaming in pain. The procedure had failed,” she wrote. “I had a massive bleed and the doctors made it plain that my chances of surviving were precarious if they didn’t operate again. This time they needed to access my brain in the old-fashioned way – through my skull. And the operation had to happen immediately.”

Clarke then spent a month in the hospital.

“There was terrible anxiety, panic attacks … I felt like a shell of myself,” Clarke wrote. “So much so that I now have a hard time remembering those dark days in much detail. My mind has blocked them out. But I do remember being convinced that I wasn’t going to live.”

Clarke wrote she has since “healed beyond my most unreasonable hopes.”

She said she wants to help others not just by sharing her story but encouraging donations to the charity, “SameYou,” which provides treatment for people recovering from brain injuries.