The invention discloses a biochar-based fertilizer and a preparation method thereof. The biochar-based fertilizer is prepared from the following raw materials in percentage: 20-30% of humus soil, 10-20% of pig manure, 10-15% of straw ash, 10-15% of charcoal, 10-15% of poultry bones, 10-15% of fruit shells, 1-2% of urea, 1-2% of calcium superphosphate, 1-2% of potassium chloride, 1-2% of magnesium sulfate and 1-2% of ammonium chloride. According to the prepared biochar-based fertilizer and the preparation method thereof, the biochar-based fertilizer prepared by matching humus soil and pig manure with straw ash, charcoal, poultry bones and fruit shells is loose in pores and good in air permeability, can purify water and is beneficial to reducing the use of chemical fertilizers; and the fertilizer can increase crop yield, improve agricultural product quality, improve soil fertility, reduce nutrient loss, and reduce soil heavy metals.