Education in Thailand is provided mainly by the Thai government through the Ministry of Education from pre-school to senior high school. A free basic education of 12 years is guaranteed by the constitution, and a minimum of 9 years' school attendance is mandatory.