To evaluate the influence of the three-dimensional (3D) printing technology, material, sterilization, and disinfection on the accuracy of guided surgical templates. Fifty printed resin surgical templates were designed and fabricated using a digital light processing 3D printer with a photopolymerizing resin, and 50 printed metal surgical templates were designed and fabricated using a selective laser melting 3D printer with a titanium alloy. Templates from both groups were randomly divided into five subgroups involving different sterilization and disinfection procedures. The group without any sterilization or disinfection procedure served as the control group, whereas the other groups were used as the study groups (hydrogen peroxide gas plasma sterilization, 5% povidone-iodine disinfection, 75% ethyl alcohol disinfection, and steam autoclave sterilization). Implant simulations were performed on the 3D-printed resin models, and postoperative impressions were acquired with scan bodies attached to the implants. All surgical templates were digitally scanned. The root mean square was used to determine and quantify fabrication accuracy and reproducibility, and the definitive and planned implant positions were compared. The printed resin templates exhibited lower fabrication accuracy and reproducibility, as well as higher 3D deviations, after steam autoclave sterilization (p < 0.001); however, the printed metal templates were not affected by the different sterilization or disinfection procedures (p > 0.05). Printed metal surgical templates are viable alternatives for guided implant surgery. Preoperative steam or gas plasma sterilization is recommended, especially for metal templates, as resin templates show deformation and decreased accuracy after steam sterilization. chictr.org.cn number: ChiCTR2400081334.