Bacteria residing within biofilm communities can coordinate their behavior through cell-to-cell signaling. However, it remains unclear if these signals can also influence the behavior of distant cells that are not part of the community. Using a microfluidic approach, we find that potassium ion channel-mediated electrical signaling generated by a Bacillus subtilis biofilm can attract distant cells. Integration of experiments and mathematical modeling indicates that extracellular potassium emitted from the biofilm alters the membrane potential of distant cells, thereby directing their motility. This electrically mediated attraction appears to be a generic mechanism that enables cross-species interactions, as Pseudomonas aeruginosa cells also become attracted to the electrical signal released by the B. subtilis biofilm. Cells within a biofilm community can thus not only coordinate their own behavior but also influence the behavior of diverse bacteria at a distance through long-range electrical signaling. PAPERCLIP.