The invention discloses a fertilizer for conditioning soil quality and a preparation method thereof. The fertilizer is prepared from a main material and an additive, wherein the main material comprises the following components in parts by weight: 30-40 parts of pond sludge, 15-30 parts of Derris trifoliata, 17-29 parts of attapulgite clay, 12-18 parts of blast furnace slag, 14-20 parts of bone meal, and 30-36 parts of corn stalks; the additive comprises the following components in parts by weight: 10-14 parts of acrylate salt, 6-9 parts of sodium humate, 2-5 parts of hydrogen sulfide, 1-3 parts of Bacillus subtilis, 4-6 parts of urease inhibiting agent, 5-7 parts of N-(2-ethylhexyl)-5-norbornene-2,3-dicarboximide and diethyl aminoethyl hexanoate, 7-11 parts of potassium dihydrogen phosphate, and 12-16 parts of Brassinolide. The fertilizer for conditioning soil quality has long fertility and good water retention, does not generate soil caking, and has effects of disinfecting and removing weeds.