The invention belongs to the technical field of pepper planting, and discloses a method for planting peppers. Amorpha fruticosa is utilized for purifying lead-contaminated land, planting holes are dug in ploughed soil, 4,000 planting holes are dug per mu, specifically, the line spacing is 50 cm, the row spacing is 30 cm, the depth of each planting hole is 10 cm, and 100 g of organic fertilizer in the step 3 is scattered at the bottom of each planting hole; pepper seedlings with 6-8 leaves are selected to be transplanted into the planting holes, 2-3 seedlings are planted in each planting hole, the seedlings are watered with rooting water after earthing, and 50 g of organic fertilizer in the step 3 is evenly scattered to the surface of the soil; miscellaneous manure and compound fertilizer are applied in the pepper plant growing period, the specific use amount of the miscellaneous manure is 5,000 kg / mu, and the specific use amount of the compound fertilizer is 80 kg / mu; in the pepper plant fruiting period, a magnesium sulfate solution with the mass concentration being 2% is sprayed to the plants once every week, and 3 ml to 5 ml of the magnesium sulfate solution is sprayed to each plant every time. When fruits are picked, 20%-30% of fruits which are not mature are reserved. According to the scheme, the problem that edible peppers cannot be planted in the lead-contaminated soil is solved.