Listen to Selena Gomez on iHeartRadio

(TMZ) - Selena Gomez went to rehab last month ... and sources connected with the singer say she blames Justin Bieber for her predicament, TMZ reports.

TMZ has learned Gomez went to The Meadows in Arizona for 2 weeks of treatment. 

Sources tell TMZ that Selena went for a combination of problems, including alcohol, pot and prescription Ambien.

According to TMZ, Selena's decision was largely based on"that crazy boy" -- aka Bieber.  Selena blames a lot of her problems on the excesses she was exposed to by being around Bieber and his buddies.

The 2-week program at The Meadows is called DAWN ... specifically designed for people between 18 and 26.  DAWN specializes in substance dependence, trauma, family dynamics, mental health and relapse prevention.

TMZ reports Selena is not getting outpatient help now nor is she in therapy.

Photo Credit Getty Images