Bacteria are important in the carbon cycle, because they produce carbon dioxide by breaking down dead animal and plant matter. Therefore, they act as decomposers.Bacteria are important in the nitrogen cycle, because nitrogen fixing bacteria found in the root nodules of legumes convert nitrogen to nitrates. As well as, denitrifying bacteria produce nitrogen from nitrates. Lastly, nitrifying bacteria converts ammonia to nitrites too nitrates.