The invention discloses biochar capable of adsorbing heavy metals and a preparation method of the biochar, the biochar comprises shaddock peel biochar, and the biochar is prepared by the following method: cutting shaddock peel into pieces, cleaning with water to remove impurities, drying to constant weight, crushing and sieving; adding absolute ethyl alcohol and NaOH, mixing and stirring, adding aMgCl2 solution, mixing and soaking, carrying out suction filtration, washing with water until the pH value is neutral, and drying; and putting the dried shaddock peel into a tubular furnace, heatingto 300-600 DEG C in vacuum, calcining, and cooling to obtain the product. The method has the advantages of easily available raw materials, low cost, easy popularization and application, high efficiency, economy, environmental protection and the like. Through a large number of experimental screening, shaddock peel and other wastes are fully utilized, waste is turned into wealth, and the product isprepared through a preferred process. Comparison experiment screening results show that compared with unmodified biochar, the biochar obtained after the shaddock peel is modified through a specific process has a better pore structure and a better heavy metal adsorption capacity.