Terry Crews revealed that he almost lost his wife due to a previous addiction to porn.

During a recent airing of 'Watch What Happens Live with Andy Cohen,' the 'America's Got Talent' host spilled the tea.

"It was something that the porn use led to me being unfaithful years earlier. And what happened was, after years of hiding and not saying anything, she confronted me. She was like, 'What is it I don't know about you?' " 

He then said that when he told her about his earlier discretions, "She was like, 'That's it. I'm out,' "he told Cohen. "And I was like, 'Then go, bye!' "

"I was literally thinking, 'It's her. It's her fault,'" he continued. "But then I realized it was me. And all of the sudden, I knew I had to change." 

His friend then urged him to "to get better" for himself, and he went to rehab for treatment. 

"I was like, I need to break this. It was something that it was a stronghold, but I thank God I'm out of it," he said. "You learn that you've learned a lot of wrong things. I learned to correct them."