The invention discloses a preparation method of an imitated cortical bone repair material, which comprises the following steps: fully removing soft tissues, bone marrow and cartilage from a cleaned xenogeneic bone material, cleaning, degreasing, decalcifying, soaking a bone block in a glutaraldehyde solution for crosslinking treatment, soaking the bone block in proteolytic enzyme of pepsin, carrying out deproteinization treatment, compounding the xenogeneic bone material with a nano-silver gelatin solution, and finally freeze-drying to obtain a cortical bone grafting material. Degreasing, decalcification and freeze drying are carried out on the xenogeneic bone to assist in reducing antigenicity, reserving osteogenic activity and improving the osteogenic activity of the xenogeneic bone, deproteinization treatment is carried out through pepsin, damage to collagen and osteogenic factors in the bone grafting material can be reduced, and nano-silver micro powder is adopted as an antibacterial component, so that the bone grafting material has strong inhibiting and killing effects on various pathogenic microorganisms, and the bone grafting material forms a slow-release film, which can further improve the anti-infection efficacy of the xenogeneic bone grafting material.