Background: The production of 1 L of ethanol from sugarcane generates up to 12 L of vinasse, which is a liquid waste containing an as-yet uncharacterized microbial assemblage. Most vinasse is destined for use as a fertilizer on the sugarcane fields because of the high organic and K content; however, increased N2O emissions have been observed when vinasse is co-applied with inorganic N fertilizers. Here we aimed to characterize the microbial assemblage of vinasse to determine the gene potential of vinasse microbes for contributing to negative environmental effects during fertirrigation and/or to the obstruction of bioethanol fermentation. Results: We measured chemical characteristics and extracted total DNA from six vinasse batches taken over 1.5 years from a bioethanol and sugar mill in Sao Paulo State. The vinasse microbial assemblage was characterized by low alpha diversity with 5-15 species across the six vinasses. The core genus was Lactobacillus. The top six represented bacterial genera across the samples were Lactobacillus, Megasphaera and Mitsuokella (Phylum Firmicutes, 35-97\% of sample reads); Arcobacter and Alcaligenes (Phylum Proteobacteria, 0-40\%); Dysgonomonas (Phylum Bacteroidetes, 0-53\%); and Bifidobacterium (Phylum Actinobacteria, 0-18\%). Potential genes for denitrification but not nitrification were identified in the vinasse metagenomes, with putative nirK and nosZ genes the most represented. Binning resulted in 38 large bins with between 36.0 and 99.3\% completeness, and five small mobile element bins. Of the large bins, 53\% could be classified at the phylum level as Firmicutes, 15\% as Proteobacteria, 13\% as unknown phyla, 13\% as Bacteroidetes and 6\% as Actinobacteria. The large bins spanned a range of potential denitrifiers; moreover, the genetic repertoires of all the large bins included the presence of genes involved in acetate, CO2, ethanol, H2O2, and lactose metabolism; for many of the large bins, genes related to the metabolism of mannitol, xylose, butyric acid, cellulose, sucrose, ``3-hydroxy{''