Education in Spain is compulsory and free for all children aged between 6 and 16 years and is supported by the national government together with the governments of each of the country's 17 autonomous communities. In Spain, primary school and secondary school are considered basic (obligatory) education.