Selena Gomez has opened up about her fallout and reconciliation with fellow former Disney starlet Demi Lovato in the March issue of Seventeen magazine. Both ladies, who have gone on to have stellar careers as young adults, are now friends, but things weren’t always that way. The childhood friends drifted apart around the time Lovato entered rehab in 2010, but now they’re closer than ever, she said.

In Seventeen, Gomez said that the “Heart Attack” singer’s willingness to be open with the media about her struggles is what helped the pair reconnect. “Demi's very, very strong. She's the only person that I would tell the deepest, darkest secrets to,” she said. “The only person.”

“I've known her since we were 7, and we did fall apart for a while,” she said about her friend. At the time, it was known that “The X Factor” judge had an eating disorder and participated in self-harm, and she has since revealed that she was abusing drugs and alcohol as well.

“She was going through things and I was so young and it was confusing,” Gomez admitted. “I processed it saying, 'OK, I don't understand what she's going through so I'm just going to do this.' I don't think it was fair, and I'm so happy that I have her back in my life now.”

More than that, the 21-year-old added her friend was one of her inspirations: “I couldn’t imagine going through some of the things that she went through," she said, "and the fact that she is who she is today is insane.”

Both girls have gone on to have successful music careers, with Lovato on a world tour for her new album, “Neon Lights.” Gomez's interview with Seventeen will hit newstands on Feb. 4.

Follow me on Twitter @mariamzzarella