Increasing illicit drug use is one of the main problems in most countries or societies. Monitoring heavy metals and trace elements in this vulnerable group seems to be necessary. Therefore, we assessed the urinary trace element and toxic metals/metalloids concentrations (Zinc (Zn), Iron (Fe), Copper (Cu), Chromium (Cr), Lead (Pb), Cadmium (Cd), Arsenic (As), Nickel (Ni), and Mercury (Hg)) in opium, tramadol, and cannabis users compared to healthy subjects. In this cross-sectional study, patients with substance use disorder (SUD) (n = 74) were divided into four groups: cannabis, tramadol, opium, and mixed (simultaneous use of more than one of the three studied substances), along with a healthy group (n = 60). Urine samples were prepared by dispersive liquid-liquid microextraction method so that heavy metals/metalloids could be measured by ICP-MS. The mean urinary concentration of Cu (48.15 vs. 25.45; 89.2%, p<0.001), Hg (1.3 vs. 0.10; 1200%, p < 0.001), and Zn (301.95 vs. 210; 43.8%, p < 0.001) was markedly lower among patients with SUD. The mean urinary concentration of other elements including As (1.9 vs. 4.1; 115.8%), Cd (0.1 vs. 1.10; 1000%), Cr (6.80 vs. 11.65; 71.3%), Ni (2.95 vs. 4.95; 67.8%), and Pb (1.5 vs. 7.9; 426.6%) were significantly higher among patients with SUD compared to healthy subjects. When sub-groups were compared, no significant differences were observed between their trace element levels (Kruskal-Wallis test, p > 0.05). This can be an indication that regardless of the type of drug, the levels of trace elements are changed with respect to healthy individuals. Our results showed that illicit drug use causes changes in urinary trace element/heavy metal/metalloid levels and highlights the need for monitoring heavy metals and trace elements in individuals with substance use disorder. Assessment of different elements in biological samples of drug dependents may be useful for implementing new prevention and treatment protocols. In case of changes in their levels, complementary recommendations, attention to diet, and periodic assessment of toxic metal levels within treatment programs will be needed.