PI works by intercalating between the base pairs of double-stranded DNA. When bound to DNA, it fluoresces under ultraviolet light, allowing researchers to easily differentiate between live and dead cells. The emission of red fluorescence upon binding makes it possible to visualize and quantify cells using flow cytometry or fluorescence microscopy.