Certain bacteria are able to synthesize metal-free fluorescent porphyrins and can therefore be detected by sensitive autofluorescence measurements in the red spectral region. The porphyrin-producing bacterium Propionibacterium acnes, which is involved in the pathogenesis of acne vulgaris, was localized in human skin. Spectrally resolved fluorescence images of bacteria distribution in the face were obtained by a slow-scan CCD camera combined with a tunable liquid crystal filter. The structured autofluorescence of dental caries and dental plaque in the red is caused by oral bacteria, like Bacteroides or Actinomyces odontolyticus. `Caries images' were created by time-gated imaging in the ns-region after ultrashort laser excitation. Time-gated measurements allow the suppression of backscattered light and non-porphyrin autofluorescence. Biopsies of oral squamous cell carcinoma exhibited red autofluorescence in necrotic regions and high concentrations of the porphyrin-producing bacterium Pseudomonas aerigunosa. These studies suggest that the temporal and spectral characteristics of bacterial autofluorescence can be used in the diagnosis and treatment of a variety of diseases.