OBJECTIVE Gastrointestinal adverse effects occur in 20–30% of patients with metformin-treated type 2 diabetes, leading to premature discontinuation in 5–10% of the cases. Gastrointestinal intolerance may reflect localized high concentrations of metformin in the gut. We hypothesized that reduced transport of metformin via the plasma membrane monoamine transporter (PMAT) and organic cation transporter 1 (OCT1) could increase the risk of severe gastrointestinal adverse effects. RESEARCH DESIGN AND METHODS The study included 286 severe metformin-intolerant and 1,128 metformin-tolerant individuals from the IMI DIRECT (Innovative Medicines Initiative: DIabetes REsearCh on patient straTification) consortium. We assessed the association of patient characteristics, concomitant medication, and the burden of mutations in the SLC29A4 and SLC22A1 genes on odds of intolerance. RESULTS Women (P < 0.001) and older people (P < 0.001) were more likely to develop metformin intolerance. Concomitant use of transporter-inhibiting drugs increased the odds of intolerance (odds ratio [OR] 1.72, P < 0.001). In an adjusted logistic regression model, the G allele at rs3889348 (SLC29A4) was associated with gastrointestinal intolerance (OR 1.34, P = 0.005). rs3889348 is the top cis-expression quantitative trait locus for SLC29A4 in gut tissue where carriers of the G allele had reduced expression. Homozygous carriers of the G allele treated with transporter-inhibiting drugs had more than three times higher odds of intolerance compared with carriers of no G allele and not treated with inhibiting drugs (OR 3.23, P < 0.001). Use of a genetic risk score derived from rs3889348 and SLC22A1 variants found that the odds of intolerance were more than twice as high in individuals who carry three or more risk alleles compared with those carrying none (OR 2.15, P = 0.01). CONCLUSIONS These results suggest that intestinal metformin transporters and concomitant medications play an important role in the gastrointestinal adverse effects of metformin.