Peanut yield and quality face significant threats due to climate change and soil degradation. The potential of biochar technology to address this challenge remains unanswered, though biochar is acknowledged for its capacity to enhance the soil microbial community and plant nitrogen (N) supply. A field study was conducted in 2021 on oil peanuts grown in a sand-loamy Primisol that received organic amendments at 20 Mg ha−1. The treatments consisted of biochar amendments derived from poultry manure (PB), rice husk (RB), and maize residue (MB), as well as manure compost (OM) amendment, compared to no organic amendment (CK). In 2022, during the second year after amendment, samples of bulk topsoil, rooted soil, and plants were collected at the peanut harvest. The analysis included the assessment of soil quality, peanut growth traits, microbial community, nifH gene abundance, and biological N fixation (BNF) rate. Compared to the CK, the OM treatment led to an 8 % increase in peanut kernel yield, but had no effect on kernel quality in terms of oil production. Conversely, both PB and MB treatments increased kernel yield by 10 %, whereas RB treatment showed no change in yield. Moreover, all biochar amendments significantly improved oilseed quality by 10–25 %, notably increasing the proportion of oleic acid by up to 70 %. Similarly, while OM amendment slightly decreased root development, all biochar treatments significantly enhanced root development by over 80 %. Furthermore, nodule number, fresh weight per plant, and the nifH gene abundance in rooted soil remained unchanged under OM and PB treatments but was significantly enhanced under RB and MB treatments compared to CK. Notably, all biochar amendments, excluding OM, increased the BNF rate and N-acetyl-glucosaminidase activity. These changes were attributed to alterations in soil aggregation, moisture retention, and phosphorus availability, which were influenced by the diverse physical and chemical properties of biochars. Overall, maize residue biochar contributed synergistically to enhancing soil fertility, peanut yield, and quality while also promoting increased root development, a shift in the diazotrophic community and BNF.