Scarlett Johansson was only 23 years old when she married actor Ryan Reynolds in 2008. The couple, who had been dating for two years, tied the knot in a private ceremony in Vancouver, Canada.

The Marriage Story actress opened up about her first marriage to Reynolds and the lessons she learned from the experience in an interview with Vanity Fair. “The first time I got married I was 23 years old,” Johansson said without naming Reynolds, 43. “I didn’t really have an understanding of marriage. I didn’t have a good understanding of the kind of relationship I wanted, the kind of limits I wanted, the kind of freedom I wanted. I was so young.”

Johansson and Reynolds were together for two years before they married. They separated in December 2010 and finalized their divorce in July 2011. Johansson has since remarried, tying the knot with French journalist Romain Dauriac in 2014. The couple have a daughter, Rose, who was born in 2014.

Johansson said that she learned a lot from her first marriage and has taken that knowledge into her current relationship. “I think I’ve grown a lot,” she said. “I think I understand the dynamic of a relationship better. I think I understand what I need and what I want in a partner, in a relationship. I’m more equipped now to make something that’s actually real and lasting.”

Johansson’s experience with her first marriage serves as a reminder that it’s important to be sure of what you want and need in a relationship before taking the plunge. Even though she was only 23 when she married Reynolds, Johansson has learned a lot since then and is now better equipped to make a lasting relationship.