Hugh Jackman took to social media to let his fans know he had skin cancer and uploaded a photo of himself after surgery.

"Deb said to get the mark on my nose checked. Boy, was she right! I had a basil cell carcinoma. Please don't be foolish like me. Get yourself checked. And USE sunscreen!!!" he captioned the photo and referenced his wife.

His fans sent supportive messages back to the X-Men actor on Instagram and Twitter.

"A good wife cares for her husband's good health. Hope you heal fast! Love you Mr. Jackson," wrote one on Instagram.

"Deb is one smart lady. Glad you got it checked," tweeted another.

The 45-year-old made sure to thank his wife Deborra-Lee Furness, who encouraged him to go to the doctor to get his nose examined.

The X-Men: Days Of Future Past star married his wife in 1996 and they have two children together named Ava Eliot and Oscar Maximilian.

"Happy wife, happy life," Jackman told EnStars at a charity fundraiser in New York City on Sept. 17.

Scroll through our gallery to see photos of Jackman and his wife.