The problems of anterior teeth include dental plaque, dental caries, and fracture, which are usually treated with common composite resin clinically. Although good repair effect can be achieved, patients are prone to anterior tooth sensitivity after surgery. Therefore, the purpose of this study is to analyze the cosmetic effect of nanocomposite resin on anterior teeth. Up to 176 patients (176 teeth) undergoing anterior dental cosmetic restoration in our hospital were selected and assigned to the LR group (
n
=
88
) and the NR group (
n
=
88
) according to patients’ voluntary choice of prosthetic materials. The LR group was cured with light-cured composite resin, while the NR group was cured with nanocomposite resin. By comparing the related indexes of patients in the two groups, it was discovered that in the NR group, the excellent and good rate and patients’ evaluation of the repair effect were higher, while the periodontal attachment, gingival index, dental plaque index, VAS score, and the incidence of tooth sensitivity were lower, all
P
<
0.05
. The results indicated that the nanocomposite resin had significant cosmetic effect on anterior teeth and had application value.