Cameron Diaz's marriage to Benji Madden was a complete surprise.

During a new interview with Harper's Bazaar, the actress opened up about something new she tried in her 40s.

"I got married last year," Diaz responded, according to a report by Us Weekly on Tuesday. "That was the biggest thing I've done in my 40s, and it opened me up in different ways. It's pretty awesome. I didn't think it was something I'd do, and I don't know if I'd have done it if I hadn't met my husband. It was a surprise."

Diaz and Madden tied the knot in Jan. 2015 after dating for eight months.

In addition to her marriage, Diaz also faced some not so fun changes in her 40s.

"Your body changes in so many little ways. It doesn't react the same way that it used to," she shared. "I don't get the results that I used to as easily as I once did. Now I look at myself and I realize, 'Oh, right. I'm in this time now in my life where I have to be thoughtful. If I slack off, things don't come back so easily. I have to be committed.'"

"Even when you're a certain age, it's all a matter of how you present yourself, how old your spirit is, and where you are in your life," she continued. "Some 50-year-olds are still 35. It's about expression and what they can pull off."

As she continues to age with grace and styles, Diaz is enjoying life and spending time with her close friends, including her sister-in-law, Nicole Richie. 

"We do a girls' night dinner once a month in whatever city the bulk of us happens to be in, usually New York or L.A. We have an e-mail chain and kind of hone in on who's going to be where," Diaz revealed. "It's like, 'So-and-so is going to be in New York? Oh, great, so is so-and-so.' We pick a new restaurant every time, and we like an early-bird special—we all want to eat at 6 P.M. and be done by 8 so that everyone can go home and get some sleep."

As for her possible plans for a pregnancy, Diaz has been staying mum, but in recent months, the actress has been accused of hiding a baby bump.