The culprit identified as Li Jishun assaulted them during his tenure at a village school in Gansu province, BBC reported.
According to media reports, Li preyed on young and timid school girls, said a statement by the Supreme People's Court.
Li had raped 21 of his victims and sexually abused the other five in classrooms, dormitories, and the forest surrounding the village near Wushan town.
Some of the victims were assaulted more than once. It is not mentioned how authority caught him. But court had found him "a grave threat to society".