Eva Longoria has revealed that she suffered from depression after her 2011 divorce from NBA star, Tony Parker.

The former Desperate Housewives star appeared on The Dr. Oz show Friday and told the host of the struggles she has endured since the split. She said it was hard being a single woman again and that the break up took an emotional toll.

"I didn't know I was depressed," she said.

"I mean, I knew it was a sad moment in my life, but I wouldn't categorize myself as depressed. I'm not that, I'm an optimist about life. Life didn't work, moving on. I'm fine."

Parker and Longoria broke up over allegations that he had an inappropriate relationship with a teammate's wife. At the time, she opened up about what was going on in her psyche.

"I mean, I had moments [where I wondered], 'Am I not sexy enough? Am I not pretty enough? Am I not smart enough?' But in so many of those questions, I immediately stopped and said, 'No, don't start doing that.' Because you can get stuck in that cycle and you can carry on to other things," she said.

In this new interview, the 38-year old said that her thin frame was also another side effect of her marriage ending. Her loved ones began to notice that she was becoming smaller.

"That's probably the time I got the most compliments because I was so skinny. I was not eating. I was depressed. I was sad. My diet was coffee. So people kept saying, 'You look amazing. Divorce agrees with you,' " she said.

"And I was like, I don't feel good. I have no energy."

The actress told Dr. Oz that a visit to her doctor prompted her to take better care of her health.

"It was like all these things were physically wrong with my body, so I had to saturate with vitamins and kind of get back on this track," she said.

She decided to cut sugar out of her diet.

"For about three months, I did a really strict no-sugar diet, and I had more energy than I've ever had," she said.

"My palate was different. Things tasted better."

Watch Eva Longoria discuss her divorce with Amanda de Cadenet in July 2012: