Credit: Matt Carr/Getty Images

Jon Hamm has revealed that he once struggled with chronic depression.

When he was 10, his mother died, suddenly, of stomach cancer. And then, 10 years later, his father, whom his Mad Men character Don Draper is partly inspired by, passed away.

"I was ... unmoored by that," Hamm, 39, tells the U.K. magazine The Observer.

At the time, he was studying English at the University of Texas.

"I was very fortunate to have really good friends in my life whose parents sort of rallied: 'We're gonna help this kid out, because otherwise there's going to be trouble..." he said.

Without their support, he said he "easily" would have lost it.

"I struggled with chronic depression," said Hamm, who can now be seen in Ben Affleck's No. 1 crime-drama The Town. "I was in bad shape. I knew I had to get back in school and back in some kind of structured environment and ... continue."

Also allowing him to bounce back? Therapy, which he said he did "for a brief period."

"Which is what therapy does: it gives you another perspective when you are so lost in your own spiral, your own bulls--t," he explained. "It helps."

Antidepressants also aided him.

"Antidepressants help!" he said. "If you can change your brain chemistry enough to think: 'I want to get up in the morning; I don't want to sleep until four in the afternoon. I want to get up and go do my s--t and go to work and…' Reset the auto-meter, kick-start the engine!"