Recycling residues is a sustainable alternative to improve soil structure and increase the stock of nutrients. However, information about the magnitude and duration of disturbances caused by crop and industrial wastes on soil microbial community structure and function is still scarce. The objective of this study was to investigate how added residues from industry and crops together with nitrogen (N) fertiliser affect the microbial community structure and function, and nitrous oxide (N2O) emissions. The experimental sugarcane field had the following treatments: (I) control with nitrogen, phosphorus, and potassium (NPK), (II) sugarcane straw with NPK, (III) vinasse (by-product of ethanol industry) with NP, and (IV) vinasse plus sugarcane straw with NP. Soil samples were collected on days 1, 3, 6, 11, 24 and 46 of the experiment for DNA extraction and metagenome sequencing. N2O emissions were also measured. Treatments with straw and vinasse residues induced changes in soil microbial composition and potential functions. The change in the microbial community was highest in the treatments with straw addition with functions related to decomposition of different ranges of C-compounds overrepresented while in vinasse treatment, the functions related to spore-producing microorganisms were overrepresented. Furthermore, all additional residues increased microorganisms related to the nitrogen metabolism and vinasse with straw had a synergetic effect on the highest N2O emissions. The results highlight the importance of residues and fertiliser management in sustainable agriculture.