So that's where she was!

Selena Gomez has just completed a two week program for mental health issues, The Blast reports. The songstress voluntarily checked herself into a treatment center in New York, amid her ongoing battle with depression and anxiety.

"She felt like she needed to get away and focus on herself with no distractions. She came back feeling very empowered. She wants to go again later this year. She feels and looks great. She’s still working on new music and is excited about it,” a source dished to the outlet.

While there, she participated in a lot of therapy, ate healthy meals, and practiced meditation and other curative exercises.

Justin Bieber was supportive of her decision to seek help, and she felt like she needed it after all the drama with her mom Mandy. "After all the noise that happened over the holidays, she felt like she needed this,” the source added, referencing the mother-daughter feud.

"It’s a lonely journey to really figure out where all this stuff is coming from. And to detach from it. It becomes an addiction, it becomes a habit, retraining your mind to not go to these negative places when you say something wrong, do something wrong, when you wear a certain thing or represent a certain culture. But it is lonely, I had to lose a lot of people in my life to get there," she told The Business of Fashion last year about her recovery.

Charlie Puth probably isn't too sympathetic of her struggle, considering his brief romance with her left him "pretty messed up," he revealed while talking about their duet "We Don't Talk Anymore" with Billboard.

“It’s about a particular moment in my life, when someone very close to me wanted the attention of somebody else. When I found that out and we ended it, I might have done some shady things too, and she might have asked me, ‘How long has this been going on? I don’t kiss and tell, but the only way a song like that can come across as real is if there’s something else going on behind the scenes. And that’s what was happening. Very short-lived, very small, but very impactful. And it really messed me up. I’m trying to put this the best way possible: It wasn’t like I was the only person on her mind. And I think I knew that going in — what I was getting myself into," he revealed.

We're just glad she's on the mend!