Bacteroides thetaiotaomicron is a prominent member of the human gut microbiota contributing to nutrient exchange, gut function, and maturation of the host's immune system. This obligate anaerobe symbiont can adopt a biofilm lifestyle, and it was recently shown that B. thetaiotaomicron biofilm formation is promoted by the presence of bile. This process also requires a B. thetaiotaomicron extracellular DNase, which is not, however, regulated by bile. Here, we showed that bile induces the expression of several Resistance-Nodulation-Division (RND) efflux pumps and that inhibiting their activity with a global competitive efflux inhibitor impaired bile-dependent biofilm formation. We then showed that, among the bile-induced RND-efflux pumps, only the tripartite BT3337-BT3338-BT3339 pump, re-named BipABC [for Bile Induced Pump A (BT3337), B (BT3338), and C (BT3339)], is required for biofilm formation. We demonstrated that BipABC is involved in the efflux of magnesium to the biofilm extracellular matrix, which leads to a decrease of extracellular DNA concentration. The release of magnesium in the biofilm matrix also impacts biofilm structure, potentially by modifying the electrostatic repulsion forces within the matrix, reducing interbacterial distance and allowing bacteria to interact more closely and form denser biofilms. Our study therefore, identified a new molecular determinant of B. thetaiotaomicron biofilm formation in response to bile salts and provides a better understanding on how an intestinal chemical cue regulates biofilm formation in a major gut symbiont.IMPORTANCEBacteroides thetaiotaomicron is a prominent member of the human gut microbiota able to degrade dietary and host polysaccharides, altogether contributing to nutrient exchange, gut function, and maturation of the host's immune system. This obligate anaerobe symbiont can adopt a biofilm community lifestyle, providing protection against environmental factors that might, in turn, protect the host from dysbiosis and dysbiosis-related diseases. It was recently shown that B. thetaiotaomicron exposure to intestinal bile promotes biofilm formation. Here, we reveal that a specific B. thetaiotaomicron membrane efflux pump is induced in response to bile, leading to the release of magnesium ions, potentially reducing electrostatic repulsion forces between components of the biofilm matrix. This leads to a reduction of interbacterial distance and strengthens the biofilm structure. Our study, therefore, provides a better understanding of how bile promotes biofilm formation in a major gut symbiont, potentially promoting microbiota resilience to stress and dysbiosis events.