The basic compulsory educational system in Estonia is the nine-year comprehensive school (Estonian põhikool, "basic school"), for which school attendance is mandatory (homeschooling is allowed, but rare). Basic education serves as the mandatory minimum of general education requirement, which can be acquired either partially in primary schools (grades 1 to 6), basic schools (grades 1 to 9) or upper secondary schools that also teach basic school curricula.