In 1998, the then-unknown actress had a two-episode arc on the drama series.

“She played my girlfriend on ‘Felicity,'” Foley told Andy Cohen onSiriusXM.

Two years into their relationship, the duo married in 2000.

Scott Foley and Jennifer Garner at awards ceremony

“Jennifer became a huge celebrity.

She became a huge star, and she deserved everything she got,” he shared with TV Guide.

“There was no other relationship, there was no infidelity, nothing.

Jennifer Garner and Scott Foley in 1999

People get divorced, you know?

Through no one’s fault and everyone’s fault” (perPeople).

In addition to this, the “Peppermint” star has also shared regrets about marrying in her twenties.

Jennifer Garner and Scott Foley at a 2002 premiere

“Everyone reaches maturity at different times.

He’s a really good guy, and we just imploded” (perJust Jared).

Foley and Garner both went on to new relationships and started families.