Ben Affleck has been married twice. He was married to Jennifer Garner from 2005 to 2018, and he was previously married to Jennifer Lopez.