Selena Gomez has turned to religion to avoid rehab.

The 21-year-old singer, who sought treatment in January, has began attending church as she believes a ''spiritual gap'' is the reason she's suffering from depression.

A source told the HollywoodLife.com: ''Selena is trying to change her ways by going to church and more so to avoid going to rehab. She feels like she has a spiritual gap and that maybe that's why she is struggling.

''She learned about the spiritual aspect in rehab when they talked about the Twelve Steps of Alcoholics Anonymous.''

The 'Come & Get It' hitmaker has also decided to cut the people she considers to be a source of negativity out of her life because she wants to focus on her career.

The brunette beauty reportedly dumped her on/off boyfriend Justin Bieber last week after she became convinced he was getting close to Kylie Jenner at the Coachella music festival in California earlier this month.

Selena also cut ties with the reality TV star and her sister Kendall, 18, by unfollowing the sisters on Instagram and deleting all her pictures with the pair.

However, her friends and family think she is channelling her emotions in the wrong place and want her to focus on cutting Justin, 20, out of her life.

A source said previously: ''Selena is in a really bad place at the moment -- she's on the edge and now overcome with jealousy. She really needs to wash her hands of Justin for good.''