In order to predict the effect of defects on the material failure, the layered TiB2-based ceramics /42CrMo alloy gradient materials were prepared by optimizing the process parameters on the basis of the previous superheavy field synthesis of gradient materials.XRD and SEM were used to observe the continuous gradient change of ceramic/alloy phase boundary between the gradient layers.Then, based on the study of relevant parameters, the effects of different horizontal position, vertical position, length and Angle of the prefabricated crack on the crack growth rate and failure time were studied by the extended finite element (XFEM) method and ABAQUS platform.The results show that the prefabricated cracks at different horizontal positions have the most significant effect on the crack growth rate.Different crack lengths mainly affect the growth rate of crack propagation.Different crack angles are distinguished by 45°, which mainly affected the mode and path of crack propagation.This is of great reference value for damage prediction of the type of material.