During the continued rTMS phase, participants with cocaine use disorder will be randomized to receive real or fake rTMS. Repetitive TMS will be delivered during 10 outpatient treatment days, over 2 weeks (5 days/week). Following this phase, subjects will have 12 follow-up visits (once/weekly), during which they will receive rTMS, and behavioral and imaging assessments will be performed. At the end of the rTMS follow up period, participants will further receive 3 follow up visits (once a month), during which rTMS will not be performed, but behavioral data will be collected.