The invention relates to ecological organic fertilizer with a soil improving function. The ecological organic fertilizer with the soil improving function is prepared from the following components in parts by mass: 35-60 parts of organic fertilizer, 10-20 parts of urea, 4-12 parts of polyglutamic acid, 8-20 parts of humic acid, 5-9 parts of ammonium chloride, 10-15 parts of trichoderma aureoviride,20-30 parts of straw, 3-5 parts of iron ore powder, 9-15 parts of waste tobacco leaf dottle, 20-30 parts of fishpond sludge and 6-10 parts of bacillus subtilis. By means of the ecological organic fertilizer with the soil improving function, a soil structure can be improved, a proper ratio of large pores to small pores of soil is guaranteed, soil ventilation is improved, the effects of removing and preventing soil hardening are obvious, and meanwhile, the ecological organic fertilizer with the soil improving function has huge ion exchange and adsorption capability, high water absorption, waterretaining and fertilizer retaining capability, and good adsorption and buffering effects on acid-causing ions and alkali-causing ions, so that the ecological organic fertilizer has a good effect of improving the soil.