Bacterial biofilms are resilient multicellular communities with spatially complex localized interactions that remain largely uncharacterized. A new approach called RainbowSeq enables transcriptional profiling in biofilms with increased spatial resolution.