How sweet! Matthew Broderick and his wife, Sarah Jessica Parker, have been married since 1997, and in an exclusive interview with Closer Weekly, the Ferris Bueller’s Day Off star revealed the secret to their happy marriage.

“We both have a similar sense of humor,” Matthew, 55, told Closer. “It’s good to be real friends.” The Sex and the City star also previously shared that time apart has been “beneficial” to their two-decade-long marriage (maybe that’s why they’re so close).

“I know this sounds nuts, but we have lives that allow us to be away and come back together,” she shared during her interview on Girlboss Radio with Sophia Amoruso. “His work life takes him here, and mine takes me there. In some ways, I think that that’s been enormously beneficial because we have so much to share in a way. Anytime that any relationship is hard, it’s the point in which you’re deciding, ‘Is this worth the investment getting through whatever that thing is?’”

But don’t get her wrong! She loves her hubby, whom she shared kids James Wilkie, 15, and twins Tabitha and Marion, both 8, with very much! “I’ve been fortunate. Relationships are hard. I always felt that I wanted to invest more. I love him, and I think he’s brilliant,” the 52-year-old gushed.

SJP then joked, “I’m sure I annoy him. He annoys me sometimes. But also, I’m enormously proud of the person he is. I think the longer you can last, the more invested you just are and so their triumphs are yours, their disappointments are yours the more you feel those things and experience them, the more it’s hard to imagine not being part of their life.” So sweet!

Motherhood has also taught the Divorce star a lot, but she also admits it can be very difficult. “It’s exhausting. You’re basically cleaning up after people all day. You’re one big old-fashioned secretary,” Sarah Jessica quipped. “All I do is organize people’s lives and get them here and there.” She wouldn’t have life with her husband and three children any other way, though. “It’s what I wanted,” she admitted. “And with that, though, comes witnessing somebody hopefully develop into a really interesting, decent person who contributes something.”