Transfer of mobile genetic elements from one bacterium to another is the principal cause of the spread of antibiotic resistance. However, the dissemination of these elements in environmental contexts is poorly understood. In clinical and environmental settings, bacteria are often found living in multicellular communities encased in a matrix, a structure known as a biofilm. In this study, we examined how forming a biofilm influences the transmission of an integrative and conjugative element (ICE). Using the model Gram-positive bacterium B. subtilis, we observed that biofilm formation highly favors ICE transfer. This increase in conjugative transfer is due to the production of extracellular matrix, which creates an ideal biophysical context. Our study provides important insights into the role of the biofilm structure in driving conjugative transfer, which is of major importance since biofilm is a widely preponderant bacterial lifestyle for clinically relevant bacterial strains.