The present study aimed to explore the mechanisms and soil properties of eggplant production and quality, as well as the bacterial community structure, soil physico-chemical properties, eggplant growth properties, and nutrient contents. A field experiment was performed in a seasonal crop of eggplants irrigated with magnetized water (MW) and nonmagnetized water (NMW). A magnetic field was used for water treatment in the MW groups. The soil nutrient contents as well as soil enzyme activities were significantly increased in the MW treatment compared with those in the NMW treatment. After irrigation with MW, the abundance of Proteobacteria in the soil significantly increased, while that of Firmicutes decreased in comparison with the NMW treatment. The bacterial diversity indexes operational taxonomic unit (OTU), Chao1 and ACE revealed increases of 3~24%. Additionally, the MW treatment increased the length, width, and fresh weight of the eggplant leaves by 17~29%, while the fruit length and width and the single fruit weight increased by 5~16%. The contents of vitamin C and organic acids in eggplant fruit in the MW treatment markedly increased by 25~34% compared with those in the NMW treatment. Likewise, the contents of mineral elements in the treated eggplants exhibited marked increases compared with the levels in the NMW treatment. Irrigation with MW had the potential to improve soil quality and change the community structure of the bacteria. Moreover, irrigation with MW could improve eggplant growth and output, hence promoting fruit quality. These results could provide a theoretical basis for the application of magnetics for improving crop production.