This protocol explains how to prepare bacterial samples for optical microscopy imaging, with a DAPI staining step.