Comedian Jim Gaffigan revealed that his wife, Jeannie, recently underwent "life-threatening" brain surgery in order to have a tumor around her brain stem removed.

The comedian opened up about the scary ordeal on Facebook on Monday.

"Two weeks ago an MRI revealed @jeanniegaffigan had a large tumor around her brain stem that was life threatening. After nine hours of urgent surgery, the tumor was completely removed. She is now recovering at home. We thank you for your continued prayers," Gaffigan shard.

Gaffigan also shared a photo earlier this week where he posted about his wife's road to recovery. He captioned the photo, ""Mom takes care of us. Now we take of her." The miracle of baby medicine. Thanks for the prayers everyone. @jeanniegaffigan"

A post shared by Jim Gaffigan (@jimgaffigan) on May 1, 2017 at 4:05pm PDT

The 50-year-old comedian and his wife have been married since 2003 and created his popular TV Land show, "The Jim Gaffigan Show" together. They also share five children, daughters Marre and Katie, and sons Jack, Michael, and Patrick.

Jeannie seems to be on the road to recovery and on Monday she shared a photo on Instagram where she was seen clutching one of her children and kissing them on the forehead. She captioned the photo, "I'm coming back! Thanks for your prayers. I'm alive!"

NEW YORK, NY - APRIL 12: Jeannie Gaffigan and Jim Gaffigan attend The Cinema Society with NARS & AVION host the after party for Sony Pictures Classics' 'Norman' at The Skylark on April 12, 2017 in New York City. (Photo by Jared Siskin/Patrick McMullan via Getty Images)

NEW YORK, NY - APRIL 12: Jim Gaffigan and Jeannie Gaffigan attend a screening of Sony Pictures Classics' 'Norman' hosted by The Cinema Society with NARS & AVION at the Whitby Hotel on April 12, 2017 in New York City. (Photo by Andrew Toth/FilmMagic)

NEW YORK, NY - NOVEMBER 01: Comedian, performer Jim Gaffigan and writer Jeannie Gaffigan attend 10th Annual Stand Up For Heroes at The Theater at Madison Square Garden on November 1, 2016 in New York City. (Photo by Theo Wargo/Getty Images)

NEW YORK, NY - NOVEMBER 01: Comedian Jerry Seinfeld (L), Comedian, performer Jim Gaffigan and writer Jeannie Gaffigan attend as The New York Comedy Festival and The Bob Woodruff Foundation present the 10th Annual Stand Up for Heroes event at The Theater at Madison Square Garden on November 1, 2016 in New York City. (Photo by Kevin Mazur/Getty Images for The Bob Woodruff Foundation)

NEW YORK, NY - JUNE 28: Jeannie Gaffigan and Jim Gaffigan visit SiriusXM Townhall at SiriusXM Studio on June 28, 2016 in New York City. (Photo by Robin Marchant/Getty Images)

NEW YORK, NY - JUNE 28: Jeannie Gaffigan and Jim Gaffigan visit SiriusXM Townhall at SiriusXM Studio on June 28, 2016 in New York City. (Photo by Robin Marchant/Getty Images)

NEW YORK, NY - JUNE 28: Jeannie Gaffigan and Jim Gaffigan visit SiriusXM Townhall at SiriusXM Studio on June 28, 2016 in New York City. (Photo by Robin Marchant/Getty Images)

NEW YORK, NY - JUNE 26: Jim Gaffigan and Jeannie Gaffigan attend Jim and Jeannie Gaffigan in Conversation with Nathan Lane at 92nd Street Y on June 26, 2016 in New York City. (Photo by Steve Mack/Getty Images)

NEW YORK, NY - JUNE 26: Jeannie Gaffigan attends Jim and Jeannie Gaffigan in Conversation with Nathan Lane at 92nd Street Y on June 26, 2016 in New York City. (Photo by Steve Mack/Getty Images)

NEW YORK, NY - MAY 26: Jeannie Gaffigan and Jim Gaffigan attend AOL BUILD Speaker Series at AOL Studios In New York on May 26, 2015 in New York City. (Photo by John Lamparski/WireImage)

NEW YORK, NY - MAY 26: Jim Gaffigan and Jeannie Gaffigan speak during AOL BUILD Speaker Series at AOL Studios In New York on May 26, 2015 in New York City. (Photo by John Lamparski/WireImage)

NEW YORK, NY - MAY 26: Jim Gaffigan and Jeannie Gaffigan speak during AOL BUILD Speaker Series at AOL Studios In New York on May 26, 2015 in New York City. (Photo by John Lamparski/WireImage)

NEW YORK, NY - MAY 26: Jim Gaffigan (L) Jeannie Gaffigan speak at the AOL BUILD Speaker Series: Jim Gaffigan at AOL Studios In New York on May 26, 2015 in New York City. (Photo by Mike Coppola/Getty Images)

Jim Gaffigan and Jeannie Noth attend the 'Night of Too Many Stars: America Comes Together for Autism Programs' at the Beacon Theatre in New York City. ?? LAN (Photo by Lars Niki/Corbis via Getty Images)

NEW YORK, NY - FEBRUARY 28: Jim Gaffigan (L) and Jeannie Noth attend Comedy Central's 'Night of Too Many Stars: America Comes Together For Autism Programs' on February 28, 2015 in New York City. (Photo by Andrew Toth/FilmMagic)

NEW YORK, NY - NOVEMBER 22: Jeannie Noth (L) and Jim Gaffigan attend 2014 A Funny Thing Happened On The Way To Cure Parkinson's at The Waldorf=Astoria on November 22, 2014 in New York City. (Photo by Theo Wargo/MJF2014/WireImage)

NEW YORK, NY - NOVEMBER 09: Jeannie Gaffigan and Jim Gaffigan attend 2013 A Funny Thing Happened On The Way To Cure Parkinson's at The Waldorf=Astoria on November 9, 2013 in New York City. (Photo by Robin Marchant/Getty Images

NEW YORK, NY - NOVEMBER 19: (L-R): Journalist Chris Cuomo, Kate Bolduan, Jeannie Gaffigan and Jim Gaffigan attend 2013 CNN Heroes: An All Star Tribute at the American Museum of Natural History on November 19, 2013 in New York City. 24079_014_0695.JPG (Photo by Dimitrios Kambouris/WireImage)

NEW YORK, NY - NOVEMBER 19: Jim Gaffigan (L) and wife Jeannie Noth attend the 2013 CNN Heroes at the American Museum of Natural History on November 19, 2013 in New York City. (Photo by D Dipasupil/FilmMagic)

NEW YORK, NY - DECEMBER 10: Jim Gaffigan (R) and wife Jeannie Gaffigan attend IFC's 'Portlandia' Season 3 premiere after party at the American Museum of Natural History on December 10, 2012 in New York City. (Photo by D Dipasupil/FilmMagic)

NEW YORK, NY - DECEMBER 10: Jim Gaffigan and Jeannie Noth attend IFC's 'Portlandia' Season 3 New York Premiere at American Museum of Natural History on December 10, 2012 in New York City. (Photo by Eugene Gologursky/WireImage)

NEW YORK, NY - APRIL 26: Actor Jim Gaffigan (L) and actress Jeannie Noth attend 2014 American Comedy Awards at Hammerstein Ballroom on April 26, 2014 in New York City. (Photo by Michael Loccisano/Getty Images)

NEW YORK, NY - NOVEMBER 09: Jeannie Gaffigan and Jim Gaffigan attend 2011 Stand Up for Heroes at the Beacon Theatre on November 9, 2011 in New York City. (Photo by Donna Ward/Getty Images)

Jim Gaffigan and Jeannie Gaffigan with daughters (Kate and Marre) attending the Broadway Opening Night Performance of 'Annie' at the Palace Theatre in New York City on 11/08/2012 (Photo by Walter McBride/Corbis via Getty Images)

NEW YORK, NY - APRIL 18: Actors Jeannie Noth (L) and Jim Gaffigan attend the 'One Man, Two Guvnors' Broadway opening night at the Music Box Theatre on April 18, 2012 in New York City. (Photo by Cindy Ord/Getty Images)

Jim Gaffigan and wife Jeannie Noth pose at The Opening Night After Party for 'That Championship Season' on Broadway at Gotham Hall on March 6, 2011 in New York City. (Photo by Bruce Glikas/FilmMagic)

Actor Jim Gaffigan and wife Jeannie depart 'Late Show With David Letterman' at the Ed Sullivan Theater on February 2, 2011 in New York City. (Photo by Jeffrey Ufberg/WireImage)