One of the most beautiful women to ever walk the earth, Sofia Vergara revealed that she slathers herself in coconut oil before bed but, of course, only when her equally swoon-worthy husband Joe Manganiello is away.

It goes to show that just like the rest of us, sometimes celebrities will go the extra mile to achieve the perfect complexion and flawless skin.

Sofia shared this beauty regimen and fans think it is gross. After all, it's hard to picture Sofia slathered in coconut oil. Like most oils, coconut oil will definitely make a mess and you would think the last thing you want is oil all over your sheets. However, coconut oil is part of Sofia Vergara's frequent rituals when it comes to her skincare and from the looks of it, it's working.

Fans should also take note as this is a celebrity skincare item that can be found in a store.

RELATED: From Modern Family To Makeup -Join Sofia Vergara In Her First Live Beauty Chat

Sofia Vergara Is Skin Goals

The Modern Family star is absolutely stunning, as you can see from all the photos that Jay Pritchett probably wouldn't want us to see.

Sofia also has an incredibly youthful glow and enviable flawless skin. And while most people might attribute it to uber pricey skin treatments, Sofia shared her skin regimen on Jimmy Kimmel Live and it involves coconut oil and long-sleeved pajamas.

"It's like a moisturizing thing that is natural, it doesn't have chemicals. And it's very good for you, you can put it in your hair, in your face, in your eyelashes."

"You can put it everywhere, in between your toes before you go to sleep and you sleep on it and then you wake up all plump."

RELATED: 20 Surprising Facts About Modern Family's Sofia Vergara

Sofia Use's Her Husbands Time Away As An Opportunity To Slather Herself In Coconut Oil

According to Sofia, she slathers herself in coconut oil before bedtime and puts on long-sleeved pajamas and socks but... only when her husband Joe Manganiello is away.

"I do it when Joe is not home, I'm not gonna be like a snake next to him, like a slippery snake. But when he's out of town I take advantage."

For years the star has been rumored to coat her body in coconut oil and wrapping her oil-covered skin in plastic. However, Sofia denied covering her skin in plastic stating, "it makes sense to do it, but it would be too much."

RELATED: 18 Little Known Facts About Sofia Vergara And Joe Manganiello’s Love Story

Coconut oil has been used for culinary purposes for ages, it's so versatile that cooking is not its only use. It has healing and moisturizing properties that make it great for your skin. Like Sofia, many celebrities are incorporating coconut oil into their beauty routines.

It is said to have anti-inflammatory and anti-bacterial properties that could treat acne. According to Healthline, "In addition to its effects on acne and inflammation, applying coconut oil to your skin can also help keep it hydrated."

"It has also been shown to help treat eczema, a skin condition characterized by scaly, itchy rashes."

"Coconut oil could potentially clog pores. Using a small amount and slowly testing your tolerance to it is recommended for those with oily or sensitive skin."

Clearly Sofia did her research, the 47-year-old America's Got Talent judge's flawless skin gives her a youthful glow. It's evident that the coconut oil is doing wonders for her skin.

NEXT: Life After Modern Family: Where The Cast Is Going Now That The Show's Over