Foodborne illnesses present a major threat to public health and are frequently attributed to foodborne pathogens present on fresh produce. Some opportunistic pathogens of broccoli are also responsible for causing head rot. Three different light treatments, UV-C, red LED (50 μml/m2/s), and UV-C + LED were used to treat broccoli prior to or during storage. Following the light treatments, microorganisms present in eluates obtained from the surface of broccoli heads were characterized using a metagenomic approach. Metagenomic DNA libraries were subjected to high-throughput sequencing on an Illumina Hiseq platform. Results indicated that the combined treatment of LED red light and UV-C provided the best sensory preservation of broccoli, followed by LED red light and then UV-C. The bacterial communities in the eluates obtained from the surface of broccoli heads in all three light treatments were primarily represented at the phylum level by Proteobacteria and Firmicutes, while fungal communities were primarily represented by Ascomycota and Basidiomycota. Further analysis indicated that the all three light treatments reduced the presence of foodborne pathogens and bacterial taxa responsible for broccoli spoilage. While UV-C had a significant inhibitory effect on Botrytis cinerea, the light treatments increased the relative abundance of Pseudomonas fluorescens. Results indicate that a metagenomic approach can be used to detect pathogenic bacteria and fungi on fresh vegetables and assess the impact of management practices, such as light treatments, designed to maintain postharvest quality, on the composition of the microbiome present on the surface of harvested produce.