According to the provisions of China's Law on the Protection of Minors, parents or other guardians should respect minors' right to education, and must make school-age minors receive compulsory education in accordance with regulations, and must not make minors who receive compulsory education drop out of school. Parents or other guardians who fail to perform their guardianship duties or infringe upon the legitimate rights and interests of minors under guardianship shall bear the responsibility according to law. At the same time, China's Compulsory Education Law also stipulates that parents or other guardians must make school-age children or wards enter school on time and receive compulsory education for a specified number of years. In addition, China's education law also stipulates that parents or other guardians of minors should provide necessary conditions for their minor children or other wards to receive education. Parents or other guardians of minors shall cooperate with schools and other educational institutions to educate their minor children or other wards. Schools and teachers can provide family education guidance to parents of students.
According to the above-mentioned legal provisions, parents have the obligation to let school-age children receive education at school and should provide necessary conditions. Therefore, it is illegal for parents to deprive their children of schooling.