Compulsory education refers to a period of education that is required of persons, imposed by law. In some countries the education needs to take place at a registered school. Other countries allow the education to happen outside of school, for example via
homeschooling.