The invention discloses an environmentally-friendly chemical fertilizer capable of improving saline-alkali soil and a preparation method of the chemical fertilizer. The chemical fertilizer is prepared from the following components, in parts by weight: 80-120 parts of wormcast, 40-60 parts of domestic waste, 120-150 parts of farmyard manure, 60-80 parts of plant ash, 80-100 parts of straw, 20-40 parts of a microbial fertilizer, 40-60 parts of pine needle soil, 40-60 parts of traditional Chinese medicine residues, and 20-40 parts of washing water of rice. The preparation method provided by the invention is simple, the costs are low, and when the chemical fertilizer is used for a long term, the saline-alkali soil and soil hardening can be improved; and during preparation, the prepared particles are sent to a dryer for drying treatment, the surfaces of the particles are subjected to roughening treatment to increase gas permeability, pelletization is realized to prevent the particles from being bonded together, after roughening treatment, the microbial fertilizer is added for adhesion, uniform stirring is performed, secretion of microorganisms can dissolve phosphate in the soil to release phosphorus and release potassium and microelement cations, the aggregate structure is restored in the form of a bond bridge, so that the chemical fertilizer eliminates soil hardening, and can improve the saline-alkali performance of the soil to prevent the soil from being hardened while providing fertilizer efficiency.