Sean Hayes is a married man.

Khloe Kardashian Drops Bombshell In New Reality Show Clip

On Thursday, the former Will & Grace actor took to Facebook, where he announced to fans that he and his longtime partner, Scott Icenogle, secretly tied the knot a week ago.

"Here’s a #TBT photo of Scotty and me getting married last week. Took us 8 years but we did it!" Hayes wrote, along with a photo of him and his husband, wearing matching grey suits, checkered blue shirts and a pair of blue ties.

T.I. And Tiny Possibly End Split Rumors On 'The Family Hustle'

Speculation regarding a possible engagement between Hayes and Icenogle, a music composer, began in early fall, when Hayes appeared on The Talk wearing a silver band on his ring finger, and again after he wore the same ring on The Ellen DeGeneres Show.

Hayes initially came out in May 2010, during an interview with The Advocate titled "I Am Who I Am." In the piece, Hayes addressed his relationship with Icenogle briefly, although he did not mention him by name.

"I spend time with a special someone in my life," he told the mag at the time. "That's it. That's all I need. I don't need events. I don't do a lot. I live my life like an 85-year-old man. I'm just quiet. It's fantastic."

During his appearance on The Ellen DeGeneres Show, Hayes spoke of a recent trip he and Icenogle took with fellow actor Will Arnett. "It's beautiful. We saw all the historical monuments that you should see," he told the host, as a photo of the three of them appeared on a television screen.

A clip from Hayes' appearance on the show can be seen below.