The Portuguese education system is divided into four levels - pre-school, basic education, secondary education, and higher education. Basic education is compulsory and free for all students until age 18. It consists of 9 years divided into 3 cycles. Secondary education provides both academic and vocational paths. Higher education is divided into universities and polytechnics, and provides degrees from undergraduate to doctoral levels. Portugal has a long tradition of education and its universities offer programs in many fields to both domestic and international students.