Ben Affleck has revealed that he has completed treatment for alcohol addiction.

The two-time Oscar winner, 44, announced the news in a Facebook post Tuesday.

advertisement | advertise on newsday

“I have completed treatment for alcohol addiction; something I’ve dealt with in the past and will continue to confront,” he wrote. “I want to live life to the fullest and be the best father I can be. I want my kids to know there is no shame in getting help when you need it, and to be a source of strength for anyone out there who needs help but is afraid to take the first step. I’m lucky to have the love of my family and friends, including my co-parent, Jen [Garner], who has supported me and cared for our kids as I’ve done the work I set out to do. This was the first of many steps being taken towards a positive recovery.”

Affleck and Garner, who have three children, announced their separation in 2015. The couple has remained close and last week People magazine, citing sources, reported that they were putting their divorce on hold.

In 2001, Affleck checked into rehab, also for alcohol treatment. “I went to rehab for being 29 and partying too much and not having a lot of boundaries and to clear my head and try to get some idea of who I wanted to be,” Affleck said in a 2012 Hollywood Reporter cover story. “It was more a ‘let me get myself straight,’ before it became a rite of passage.”

In January, Affleck announced he would not be directing the film “The Batman.” Although the “Batman v Superman: Dawn of Justice” star said he would still be playing the Caped Crusader in the movie.